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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils