[PATCH] D19416: [ELF] - Assign correct value to Phdr's p_offset field.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 22 09:16:40 PDT 2016
grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
System V ABI 4.1 specifies that program header's p_vaddr should equal p_offset, modulo p_align.
(https://docs.oracle.com/cd/E19683-01/816-1386/chapter6-83432/index.html).
I was able to violate this using the linkerscript.
Patch fixes the issue.
http://reviews.llvm.org/D19416
Files:
ELF/Writer.cpp
test/ELF/phdr-align.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19416.54667.patch
Type: text/x-patch
Size: 3758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160422/69d12f34/attachment.bin>
More information about the llvm-commits
mailing list