mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-11 10:11:42 +08:00
* scripttempl/elf.sc (WRITABLE_RODATA): New variable for
controlling whether or not .rodata is in the data segment or the text segment.
This commit is contained in:
@ -1,10 +1,15 @@
|
|||||||
|
1999-06-20 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
|
* scripttempl/elf.sc (WRITABLE_RODATA): New variable for
|
||||||
|
controlling whether or not .rodata is in the data segment or the
|
||||||
|
text segment.
|
||||||
|
|
||||||
1999-06-18 Nick Clifton <nickc@cygnus.com>
|
1999-06-18 Nick Clifton <nickc@cygnus.com>
|
||||||
|
|
||||||
* emultempl/pe.em: Add new command line switch --thumb-entry.
|
* emultempl/pe.em: Add new command line switch --thumb-entry.
|
||||||
* emultempl/armelf.em: Add new command line switch --thumb-entry.
|
* emultempl/armelf.em: Add new command line switch --thumb-entry.
|
||||||
* emultempl/armcoff.em: Add new command line switch --thumb-entry.
|
* emultempl/armcoff.em: Add new command line switch --thumb-entry.
|
||||||
* ld.texinfo: Document new ARM command line switch: --thumb-entry.
|
* ld.texinfo: Document new ARM command line switch: --thumb-entry.
|
||||||
|
|
||||||
1999-06-20 H.J. Lu <hjl@gnu.org>
|
1999-06-20 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* configure.in (all_libpath): Accumulate across all enabled targets.
|
* configure.in (all_libpath): Accumulate across all enabled targets.
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
# SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set
|
# SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set
|
||||||
# start address of shared library.
|
# start address of shared library.
|
||||||
# INPUT_FILES - INPUT command of files to always include
|
# INPUT_FILES - INPUT command of files to always include
|
||||||
|
# WRITABLE_RODATA - if set, the .rodata section should be writable
|
||||||
#
|
#
|
||||||
# When adding sections, do note that the names of some sections are used
|
# When adding sections, do note that the names of some sections are used
|
||||||
# when specifying the start address of the next.
|
# when specifying the start address of the next.
|
||||||
@ -40,7 +41,7 @@ test "$LD_FLAG" = "N" && DATA_ADDR=.
|
|||||||
INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
|
INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
|
||||||
PLT=".plt ${RELOCATING-0} : { *(.plt) }"
|
PLT=".plt ${RELOCATING-0} : { *(.plt) }"
|
||||||
DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }"
|
DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }"
|
||||||
|
RODATA=".rodata ${RELOCATING-0} : { *(.rodata) ${RELOCATING+*(.rodata.*)} ${RELOCATING+*(.gnu.linkonce.r*)} }"
|
||||||
CTOR=".ctors ${CONSTRUCTING-0} :
|
CTOR=".ctors ${CONSTRUCTING-0} :
|
||||||
{
|
{
|
||||||
${CONSTRUCTING+${CTOR_START}}
|
${CONSTRUCTING+${CTOR_START}}
|
||||||
@ -180,12 +181,7 @@ SECTIONS
|
|||||||
${RELOCATING+_etext = .;}
|
${RELOCATING+_etext = .;}
|
||||||
${RELOCATING+PROVIDE (etext = .);}
|
${RELOCATING+PROVIDE (etext = .);}
|
||||||
.fini ${RELOCATING-0} : { KEEP (*(.fini)) } =${NOP-0}
|
.fini ${RELOCATING-0} : { KEEP (*(.fini)) } =${NOP-0}
|
||||||
.rodata ${RELOCATING-0} :
|
${WRITABLE_RODATA-${RODATA}}
|
||||||
{
|
|
||||||
*(.rodata)
|
|
||||||
${RELOCATING+*(.rodata.*)}
|
|
||||||
${RELOCATING+*(.gnu.linkonce.r*)}
|
|
||||||
}
|
|
||||||
.rodata1 ${RELOCATING-0} : { *(.rodata1) }
|
.rodata1 ${RELOCATING-0} : { *(.rodata1) }
|
||||||
${RELOCATING+${OTHER_READONLY_SECTIONS}}
|
${RELOCATING+${OTHER_READONLY_SECTIONS}}
|
||||||
|
|
||||||
@ -205,6 +201,7 @@ SECTIONS
|
|||||||
.data1 ${RELOCATING-0} : { *(.data1) }
|
.data1 ${RELOCATING-0} : { *(.data1) }
|
||||||
.eh_frame : { *(.eh_frame) }
|
.eh_frame : { *(.eh_frame) }
|
||||||
.gcc_except_table : { *(.gcc_except_table) }
|
.gcc_except_table : { *(.gcc_except_table) }
|
||||||
|
${WRITABLE_RODATA+${RODATA}}
|
||||||
${RELOCATING+${OTHER_READWRITE_SECTIONS}}
|
${RELOCATING+${OTHER_READWRITE_SECTIONS}}
|
||||||
${RELOCATING+${CTOR}}
|
${RELOCATING+${CTOR}}
|
||||||
${RELOCATING+${DTOR}}
|
${RELOCATING+${DTOR}}
|
||||||
|
Reference in New Issue
Block a user