mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Add support for -fdata-sections
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2001-03-07 Michael Meissner <meissner@redhat.com>
|
||||||
|
|
||||||
|
* scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
|
||||||
|
with sections created by -fdata-sections.
|
||||||
|
(.dynbss,.bss): Ditto.
|
||||||
|
|
||||||
2001-03-05 Alan Modra <alan@linuxcare.com.au>
|
2001-03-05 Alan Modra <alan@linuxcare.com.au>
|
||||||
|
|
||||||
* emultempl/m68kelf.em (m68k_elf_after_allocation): Call
|
* emultempl/m68kelf.em (m68k_elf_after_allocation): Call
|
||||||
|
@ -77,7 +77,9 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
${RELOCATING+${TEXT_START_SYMBOLS}}
|
${RELOCATING+${TEXT_START_SYMBOLS}}
|
||||||
KEEP (*(.init))
|
KEEP (*(.init))
|
||||||
|
KEEP (*(.init.*))
|
||||||
KEEP (*(.fini))
|
KEEP (*(.fini))
|
||||||
|
KEEP (*(.fini.*))
|
||||||
*(.text)
|
*(.text)
|
||||||
*(.text.*)
|
*(.text.*)
|
||||||
/* .gnu.warning sections are handled specially by elf32.em. */
|
/* .gnu.warning sections are handled specially by elf32.em. */
|
||||||
@ -88,9 +90,15 @@ SECTIONS
|
|||||||
} ${RELOCATING+ >INSN} =${NOP-0}
|
} ${RELOCATING+ >INSN} =${NOP-0}
|
||||||
|
|
||||||
.rodata ${RELOCATING-0} : {
|
.rodata ${RELOCATING-0} : {
|
||||||
*(.rodata) *(.gnu.linkonce.r*)
|
*(.rodata)
|
||||||
|
*(.gnu.linkonce.r*)
|
||||||
|
*(.rodata.*)
|
||||||
|
} ${RELOCATING+ >DATA}
|
||||||
|
|
||||||
|
.rodata1 ${RELOCATING-0} : {
|
||||||
|
*(.rodata1)
|
||||||
|
*(.rodata1.*)
|
||||||
} ${RELOCATING+ >DATA}
|
} ${RELOCATING+ >DATA}
|
||||||
.rodata1 ${RELOCATING-0} : { *(.rodata1) } ${RELOCATING+ >DATA}
|
|
||||||
|
|
||||||
.data ${RELOCATING-0} :
|
.data ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
@ -107,7 +115,11 @@ SECTIONS
|
|||||||
/* We want the small data sections together, so single-instruction offsets
|
/* We want the small data sections together, so single-instruction offsets
|
||||||
can access them all, and initialized data all before uninitialized, so
|
can access them all, and initialized data all before uninitialized, so
|
||||||
we can shorten the on-disk segment size. */
|
we can shorten the on-disk segment size. */
|
||||||
.sdata ${RELOCATING-0} : { *(.sdata) } ${RELOCATING+ >DATA}
|
.sdata ${RELOCATING-0} : {
|
||||||
|
*(.sdata)
|
||||||
|
*(.sdata.*)
|
||||||
|
} ${RELOCATING+ >DATA}
|
||||||
|
|
||||||
${RELOCATING+_edata = .;}
|
${RELOCATING+_edata = .;}
|
||||||
${RELOCATING+PROVIDE (edata = .);}
|
${RELOCATING+PROVIDE (edata = .);}
|
||||||
${RELOCATING+__bss_start = .;}
|
${RELOCATING+__bss_start = .;}
|
||||||
@ -115,9 +127,12 @@ SECTIONS
|
|||||||
.bss ${RELOCATING-0} :
|
.bss ${RELOCATING-0} :
|
||||||
{
|
{
|
||||||
*(.dynbss)
|
*(.dynbss)
|
||||||
|
*(.dynbss.*)
|
||||||
*(.bss)
|
*(.bss)
|
||||||
|
*(.bss.*)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
} ${RELOCATING+ >DATA}
|
} ${RELOCATING+ >DATA}
|
||||||
|
|
||||||
${RELOCATING+_end = . ;}
|
${RELOCATING+_end = . ;}
|
||||||
${RELOCATING+PROVIDE (end = .);}
|
${RELOCATING+PROVIDE (end = .);}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user