[llvm-bugs] [Bug 39434] New: INSERT AFTER/BEFORE not supported correctly

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 25 14:20:07 PDT 2018


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: unassignedbugs at nondot.org
          Reporter: npl at chello.at
                CC: llvm-bugs at lists.llvm.org, peter.smith at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181025/f5a4df7c/attachment.html>


More information about the llvm-bugs mailing list