[PATCH] D25549: [ELF] - Linkerscript: accept integer values for PHDRS types.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 13 03:16:51 PDT 2016
grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
Found that in the wild. Both gold and ld accepts integers instead of named constants
for PHDRS. For example older OpenBSD code had:
(https://lab.knightsofnii.com/kristaba/openbsd/blob/4a75b1afc24240f0320911070f95ddf644b8cac7/sys/arch/amd64/conf/kern.ldscript)
PHDRS
{
....
openbsd_randomize 0x65a3dbe6; /* PT_OPENBSD_RANDOMIZE */
}
Patch adds support for that.
https://reviews.llvm.org/D25549
Files:
ELF/LinkerScript.cpp
test/ELF/linkerscript/phdrs.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25549.74484.patch
Type: text/x-patch
Size: 4192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161013/9d187aa3/attachment.bin>
More information about the llvm-commits
mailing list