https://bugs.llvm.org/show_bug.cgi?id=39434
Bug ID: 39434
Summary: INSERT AFTER/BEFORE not supported correctly
Product: lld
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedb...@nondot.org
Reporter: n...@chello.at
CC: llvm-bugs@lists.llvm.org, peter.sm...@linaro.org
Augmenting the linker script with additional sections fails with lld 7.
The message is "ld.lld: error: unable to INSERT AFTER/BEFORE .rodata: section
not defined"
The script is added via -T <filename>, and should allow creating a sorted list
by the linker.
SECTIONS
{
. = ALIGN(32);
.rodata.sorted_array : ALIGN(32)
{
PROVIDE_HIDDEN (lnkheader_start = .);
KEEP (*(SORT(.rodata.LINKERSORTED_HEADER.*)))
PROVIDE_HIDDEN (lnkheader_end = .);
KEEP (*(SORT(.rodata.LINKERSORTED.*)))
}
}
INSERT AFTER .rodata;
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs