summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-01-12 10:55:15 +0000
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-01-13 14:14:03 +0000
commit894f742acb977a09285dcab024e50c2cf6bce578 (patch)
tree3fb6f7d27dc63c9359554831b1516a277db3ad04 /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
parent26d2ace9e2305266be888e15392be29e3145163d (diff)
downloadbcm5719-llvm-894f742acb977a09285dcab024e50c2cf6bce578.tar.gz
bcm5719-llvm-894f742acb977a09285dcab024e50c2cf6bce578.zip
[MIPS][ELF] Use PC-relative relocations in .eh_frame when possible
When compiling position-independent executables, we now use DW_EH_PE_pcrel | DW_EH_PE_sdata4. However, the MIPS ABI does not define a 64-bit PC-relative ELF relocation so we cannot use sdata8 for the large code model case. When using the large code model, we fall back to the previous behaviour of generating absolute relocations. With this change clang-generated .o files can be linked by LLD without having to pass -Wl,-z,notext (which creates text relocations). This is simpler than the approach used by ld.bfd, which rewrites the .eh_frame section to convert absolute relocations into relative references. I saw in D13104 that apparently ld.bfd did not accept pc-relative relocations for MIPS ouput at some point. However, I also checked that recent ld.bfd can process the clang-generated .o files so this no longer seems true. Reviewed By: atanasyan Differential Revision: https://reviews.llvm.org/D72228
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud