aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CommandLineTest.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-03-10 19:54:20 -0800
committerFangrui Song <i@maskray.me>2022-03-10 19:54:21 -0800
commit4a8de2832a2a730f63b71bdf1c1b446285ec5b6f (patch)
tree7f9fbf7e7a8ddb1027fc14a6f624a84673549c56 /llvm/unittests/Support/CommandLineTest.cpp
parente970d2823cf2a666cb597bf06ff8e0d0b880d361 (diff)
downloadllvm-4a8de2832a2a730f63b71bdf1c1b446285ec5b6f.zip
llvm-4a8de2832a2a730f63b71bdf1c1b446285ec5b6f.tar.gz
llvm-4a8de2832a2a730f63b71bdf1c1b446285ec5b6f.tar.bz2
[ELF] Add -z pack-relative-relocs
GNU ld 2.38 added -z pack-relative-relocs which is similar to --pack-dyn-relocs=relr but synthesizes the `GLIBC_ABI_DT_RELR` version dependency if a shared object named `libc.so.*` has a `GLIBC_2.*` version dependency. This is used to implement the (as some glibc folks call) version lockout mechanism. Add this option, because glibc does not want to support --pack-dyn-relocs=relr which does not add `GLIBC_ABI_DT_RELR`. See https://maskray.me/blog/2021-10-31-relative-relocations-and-relr for detail. Close https://github.com/llvm/llvm-project/issues/53775 Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D120701
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions