]> Zhao Yanbai Git Server - minix.git/commit
VM/VFS: align ELF header buffer 70/3170/1
authorDavid van Moolenbroek <david@minix3.org>
Thu, 3 Sep 2015 10:09:54 +0000 (12:09 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 17 Sep 2015 17:14:29 +0000 (17:14 +0000)
commit5ba2e6e6e868d6d5a7a581152ed6685eff59001d
treea0fb1cf24040335e6f57cabe102c6322ad5201ff
parent139ae0da30a29899932f86c1be71334d4c174f51
VM/VFS: align ELF header buffer

The libexec ELF parser expects to be given a word-aligned buffer,
but the ASR pass may cause VM and VFS to pass it an arbitrarily
aligned buffer, causing libexec to refuse loading the executable.
This patch aligns the buffers explicitly.

Change-Id: Ic2d5fd3a8f204c3e4f000cffdb7ac71c8339257a
minix/servers/vfs/exec.c
minix/servers/vm/main.c