bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/16711] New: Linker script causes gold to include .bss in outpu


From: hausen at gmx dot at
Subject: [Bug gold/16711] New: Linker script causes gold to include .bss in output file
Date: Sat, 15 Mar 2014 22:23:50 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16711

            Bug ID: 16711
           Summary: Linker script causes gold to include .bss in output
                    file
           Product: binutils
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ian at airs dot com
          Reporter: hausen at gmx dot at
                CC: ccoutant at google dot com

When using a linker script, gold includes the "content" of the .bss section in
the output file. The program headers specify that the respective segment is to
be loaded from the file (i.e., FileSize equals MemSize). A simple linker script
such as "SECTIONS { .text : { *(.text) } .data : { *(.data) } .bss : { *(.bss)
} }" is sufficient to trigger the issue.

When compiling without a linker script, the issue does not occur. The .bss
section does not occupy any space in the output file, and the respective
segment has a MemSize greater than the FileSize.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]