bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/10634] ld -r leaves gaps in output


From: davek at gcc dot gnu dot org
Subject: [Bug binutils/10634] ld -r leaves gaps in output
Date: 12 Sep 2009 00:54:24 -0000

------- 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.




reply via email to

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