[PATCH] D43185: [MIPS] Mark .eh_frame as writable for PIC output
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 06:23:30 PST 2018
arichardson added a comment.
The way it is currently it is emitting dynamic relocations into the .text segment. This needs -Wl,-z,notext with LLD but for BFD it will just emit those relocations anyway and (probably) crash at runtime.
At least now we are explicit that it requires a writable section (which will be in the relro section if you are using LLD).
I wonder if the following is the reason that we are emitting an absolute relocation for MIPS:
// We don't support PC-relative LSDA references in GAS so we use the default
// DW_EH_PE_absptr for those.
Repository:
rL LLVM
https://reviews.llvm.org/D43185
More information about the llvm-commits
mailing list