diff options
author | Fangrui Song <maskray@google.com> | 2019-05-30 01:55:43 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-30 01:55:43 +0000 |
commit | 0666f9c4e44e0841e5f2f0913659505789604f1b (patch) | |
tree | a2b5481c2d44b277c60c717c1660f4a66ec598fb /lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py | |
parent | a05fda68bc5e6b42948a3e3ddf0df1e069c38c19 (diff) | |
download | bcm5719-llvm-0666f9c4e44e0841e5f2f0913659505789604f1b.tar.gz bcm5719-llvm-0666f9c4e44e0841e5f2f0913659505789604f1b.zip |
[Driver] -static-pie: add -z text
This matches gcc -static-pie. The intention is to prevent dynamic
relocations in read-only segments.
In ld.bfd and gold, -z notext is the default. If text relocations are needed:
* -z notext: allow and emit DF_TEXTREL.
DF_TEXTREL is not emitted if there is no text relocation.
* -z text: error
In lld, -z text is the default (this change is a no-op).
* -z text: error on text relocations
* -z notext: allow text relocations, and emit DF_TEXTREL no matter whether
text relocations exist.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D62606
llvm-svn: 362050
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions