diff options
author | Fangrui Song <maskray@google.com> | 2020-01-16 12:00:24 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-01-16 13:25:51 -0800 |
commit | fac11406197ed993f1965ed1edc0369a12a2f8e2 (patch) | |
tree | 9f5b0d2d0924979e838682ac0329d83bc675e50d /lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py | |
parent | ac446302ca4145cdc89f377c0c364c29ee303be5 (diff) | |
download | bcm5719-llvm-fac11406197ed993f1965ed1edc0369a12a2f8e2.tar.gz bcm5719-llvm-fac11406197ed993f1965ed1edc0369a12a2f8e2.zip |
[ELF] -r: don't create .interp
`{clang,gcc} -nostdlib -r a.c` passes --dynamic-linker to the linker,
and the expected behavior is to ignore it.
If .interp is kept in the relocatable object file, a final link will get
PT_INTERP even if --dynamic-linker is not specified. glibc ld.so expects
to see PT_DYNAMIC and the executable will likely fail to run.
Ignore --dynamic-linker in -r mode as well as -shared.
(cherry picked from commit 2d7a8cf90478cd845ffb39763b0e95b7715322d2)
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/TestProcessAPI.py')
0 files changed, 0 insertions, 0 deletions