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

            Bug ID: 37011
           Summary: linker script: SIZEOF(.empty.output.section) != 0
           Product: lld
           Version: unspecified
          Hardware: Other
                OS: other
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: ELF
          Assignee: unassignedb...@nondot.org
          Reporter: rol...@hack.frob.com
                CC: jakehehrl...@google.com, llvm-bugs@lists.llvm.org,
                    pho...@chromium.org

Created attachment 20159
  --> https://bugs.llvm.org/attachment.cgi?id=20159&action=edit
reproducer tar file

The attached reproducer fails with the linker script's ASSERT firing.
Removing the ASSERT and replacing it with `FOO = SIZEOF(.bss);` links valid
output where there is no .bss section (since the output section described in
the linker script turned out to be empty).  However, the FOO symbol's st_value
is 2, showing that SIZEOF(.bss) is wrong in a context other than ASSERT.

-- 
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

Reply via email to