Given the test case below, the load address of secB as printed by ld as part of the link map will be different from the load address of secB as it appears in the object file.
[jaw] bash$ cat lmabug.t PHDRS { aphdr PT_LOAD; } SECTIONS { secA : AT(asymbol) { BYTE(0) } :aphdr secB : AT(LOADADDR(secA) + SIZEOF(secA)) ALIGN(2) { BYTE(0) } :aphdr asymbol = .; } [jaw] bash$ ld -T lmabug.t empty.o -M | grep secB secB 0x00000002 0x1 load address 0x00000004 [jaw] bash$ objdump -h a.out | grep secB 1 secB 00000001 00000002 00000005 00001002 2**1 -- Summary: LMA in link map versus object file disagrees Product: binutils Version: 2.21 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassigned at sources dot redhat dot com ReportedBy: sterling at tensilica dot com CC: bug-binutils at gnu dot org GCC build triplet: x86-elf-linux GCC host triplet: x86-elf-linux GCC target triplet: x86-elf-linux http://sourceware.org/bugzilla/show_bug.cgi?id=11219 ------- 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 bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils