[llvm-bugs] [Bug 48693] New: LLD crashes when building with "-g -ggnu-pubnames -Wl, --emit-relocs -Wl, --gdb-index"

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 7 18:20:08 PST 2021


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

            Bug ID: 48693
           Summary: LLD crashes when building with "-g -ggnu-pubnames
                    -Wl,--emit-relocs -Wl,--gdb-index"
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: ELF
          Assignee: unassignedbugs at nondot.org
          Reporter: thomasanderson at google.com
                CC: llvm-bugs at lists.llvm.org, smithp352 at googlemail.com

Minimized repro:

echo "int main() { return 0; }" > main.c
clang -fuse-ld=lld -g -ggnu-pubnames -Wl,--emit-relocs -Wl,--gdb-index main.c
-o main

Removing any of "-g", "-ggnu-pubnames", "--emit-relocs", or "--gdb-index"
causes the crash to disappear.

-- 
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/20210108/2af37b73/attachment.html>


More information about the llvm-bugs mailing list