------- Additional Comments From davek at gcc dot gnu dot org 2009-09-12 00:54 ------- Looking at the map files is also informative:
-------- with 20080624 binutils: Memory Configuration Name Origin Length Attributes *default* 0x00000000 0xffffffff Linker script and memory map LOAD segm.o .text 0x00000000 0x70 *(.text) .text 0x00000000 0x70 segm.o 0x00000000 text *(.glue_7t) *(.glue_7) .data 0x00000080 0x100 *(.data) .data 0x00000080 0x100 segm.o 0x00000080 data *(.data2) *(.jcr) .rdata 0x00000180 0x10 *(.rdata) .rdata 0x00000180 0x10 segm.o 0x00000180 rdata *(.rdata_runtime_pseudo_reloc) .pdata *(.pdata) .bss 0x00000190 0x0 *(.bss) .bss 0x00000190 0x0 segm.o *(COMMON) -------- with current binutils: Memory Configuration Name Origin Length Attributes *default* 0x00000000 0xffffffff Linker script and memory map LOAD segm.o .text 0x00000000 0x70 *(.text) .text 0x00000000 0x70 segm.o 0x00000000 text *(.glue_7t) *(.glue_7) .data 0x00000000 0x180 *(.data) .data 0x00000080 0x100 segm.o 0x00000080 data *(.data2) *(.jcr) .rdata 0x00000000 0x190 *(.rdata) .rdata 0x00000180 0x10 segm.o 0x00000180 rdata *(.rdata_runtime_pseudo_reloc) .eh_frame *(.eh_frame) .pdata *(.pdata) .bss 0x00000000 0x190 *(.bss) .bss 0x00000190 0x0 segm.o *(COMMON) -------- With current binutils it looks like the location counter is resetting to zero at the start of each section and then padding to the address where the contents are supposed to start. -- http://sourceware.org/bugzilla/show_bug.cgi?id=10634 ------- 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