When an output section is empty, the AT() attribute is ignored and LMA=VMA in
the output file. The LOADADDR(section) expression returns the correct value
nonetheless.
This is not really a problem when the section is really empty, ie size=0, but
its a real problem when the section is not of size=0 because of an .=ALIGN(4)
statement for example.
In this case doing a simple objcopy -O binary a.out a.bin will cause an enormous
a.bin.
--
Summary: Wrong LMA for section with empty input section.
Product: binutils
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: fabrice_gautier at sdesigns dot com
CC: bug-binutils at gnu dot org
GCC host triplet: i386-pc-linux
GCC target triplet: i386-pc-linux
http://sources.redhat.com/bugzilla/show_bug.cgi?id=948
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
bug-binutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils