diff options
author | Fangrui Song <i@maskray.me> | 2022-03-10 19:54:20 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-03-10 19:54:21 -0800 |
commit | 4a8de2832a2a730f63b71bdf1c1b446285ec5b6f (patch) | |
tree | 7f9fbf7e7a8ddb1027fc14a6f624a84673549c56 /llvm/unittests/Support/CommandLineTest.cpp | |
parent | e970d2823cf2a666cb597bf06ff8e0d0b880d361 (diff) | |
download | llvm-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