[PATCH] D18183: [ELF] - -pie/--pic-executable option implemented
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 15 06:48:21 PDT 2016
grimar created this revision.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar.
-pie
--pic-executable
Create a position independent executable. This is currently only
supported on ELF platforms. Position independent executables are
similar to shared libraries in that they are relocated by the
dynamic linker to the virtual address the OS chooses for them
(which can vary between invocations). Like normal dynamically
linked executables they can be executed and symbols defined in the
executable cannot be overridden by shared libraries.
This fixes the https://llvm.org/bugs/show_bug.cgi?id=26923
http://reviews.llvm.org/D18183
Files:
ELF/Config.h
ELF/Driver.cpp
ELF/Options.td
ELF/SymbolTable.cpp
ELF/Target.cpp
ELF/Target.h
ELF/Writer.cpp
test/ELF/driver.test
test/ELF/dynsym-pie.s
test/ELF/local-got-pie.s
test/ELF/noplt-pie.s
test/ELF/pie.s
test/ELF/plt-i686.s
test/ELF/relative-dynamic-reloc-pie.s
test/ELF/undef.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18183.50723.patch
Type: text/x-patch
Size: 16279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160315/d27b3bdf/attachment.bin>
More information about the llvm-commits
mailing list