diff options
author | Petr Hosek <phosek@chromium.org> | 2017-05-26 19:12:38 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-05-26 19:12:38 +0000 |
commit | ffa786f465547520a54eaa3f1b26ad4cd5b4223e (patch) | |
tree | 909450b1583df2623a5388a3342260f56d82073a /llvm/lib/Support/DynamicLibrary.cpp | |
parent | 9bce1ad2327f6cd680fb860232452b5dd55ea623 (diff) | |
download | llvm-ffa786f465547520a54eaa3f1b26ad4cd5b4223e.zip llvm-ffa786f465547520a54eaa3f1b26ad4cd5b4223e.tar.gz llvm-ffa786f465547520a54eaa3f1b26ad4cd5b4223e.tar.bz2 |
[lld][ELF]Add option to make .dynamic read only
The .dynamic section of an ELF almost doesn't need to be written to with
the exception of the DT_DEBUG entry. For several reasons having a read
only .dynamic section would be useful. This change adds the -z keyword
"rodynamic" which forces .dynamic to be read-only. In this case DT_DEBUG
will not be emited.
Patch by Jake Ehrlich
Differential Revision: https://reviews.llvm.org/D33251
llvm-svn: 304024
Diffstat (limited to 'llvm/lib/Support/DynamicLibrary.cpp')
0 files changed, 0 insertions, 0 deletions