https://bugs.llvm.org/show_bug.cgi?id=47056
Bug ID: 47056
Summary: --shuffle-sections can produce an invalid dynamic
relocation order
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedb...@nondot.org
Reporter: raf...@espindo.la
CC: llvm-bugs@lists.llvm.org, smithp...@googlemail.com
There are requirements on the order of dynamic relocations. For example, the
IRELATIVE relocations must be after the regular ones.
That is implemented by placing the synthetic sections in the right order.
Unfortunately --shuffle-sections also shuffles those.
The sortSection function should probably be updated to skip ELF_REL and
ELF_RELA.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs