[llvm-bugs] [Bug 36298] New: LLD does not support following output section types in script: DSECT, COPY, INFO, OVERLAY

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Feb 8 06:15:14 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36298

            Bug ID: 36298
           Summary: LLD does not support following output section types in
                    script: DSECT, COPY, INFO, OVERLAY
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: grimar at accesssoftek.com
                CC: llvm-bugs at lists.llvm.org

(SECT), (COPY), (INFO), (OVERLAY) all have the same effect: section should be
marked as non-allocatable.
Currently we do not support them and produce misleading error instead:
ld.lld: error: test.script:4: symbol not found: INFO

This is used by some apps, for example by TianoCore UEFI firmare:
.build-id (INFO) : { *(.note.gnu.build-id) }
(https://github.com/tianocore/edk2/blob/master/BaseTools/Scripts/GccBase.lds#L72)

Going to look how to support it.

-- 
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/20180208/ed9854c4/attachment.html>


More information about the llvm-bugs mailing list