mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
Set a new variable to signify if the final target is an embedded system. * scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to .text for an embedded system.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
Thu May 9 08:52:23 1996 Rob Savoye <rob@chinadoll.cygnus.com>
|
||||||
|
|
||||||
|
* emulparams/{elf32bmip.sh,elf32lmip.sh,mipsidt.sh,mipsidtl.sh}:
|
||||||
|
Set a new variable to signify if the final target is an embedded
|
||||||
|
system.
|
||||||
|
* scripttempl/{mips.sc,elfmips.sc}: Don't add SIZEOF_HEADERS to
|
||||||
|
.text for an embedded system.
|
||||||
|
|
||||||
Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
|
Tue May 7 10:56:11 1996 Doug Evans <dje@canuck.cygnus.com>
|
||||||
|
|
||||||
* scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
|
* scripttempl/pe.em (gld${EMULATION_NAME}_place_orphan): New function.
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
# .data section.
|
# .data section.
|
||||||
# OTHER_BSS_SYMBOLS - symbols that appear at the start of the
|
# OTHER_BSS_SYMBOLS - symbols that appear at the start of the
|
||||||
# .bss section besides __bss_start.
|
# .bss section besides __bss_start.
|
||||||
|
# EMBEDDED - whether this is for an embedded system.
|
||||||
#
|
#
|
||||||
# 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.
|
||||||
@ -30,6 +31,13 @@ if [ -z "$ENTRY" ]; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# if this is for an embedded system, don't add SIZEOF_HEADERS.
|
||||||
|
if [ -z "$EMBEDDED" ]; then
|
||||||
|
test -z ${TEXT_BASE_ADDRESS} && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS"
|
||||||
|
else
|
||||||
|
test -z ${TEXT_BASE_ADDRESS} && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}"
|
||||||
|
fi
|
||||||
|
|
||||||
test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
|
test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT}
|
||||||
test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
|
test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT}
|
||||||
test "$LD_FLAG" = "N" && DATA_ADDR=.
|
test "$LD_FLAG" = "N" && DATA_ADDR=.
|
||||||
@ -51,7 +59,7 @@ ${RELOCATING- /* For some reason, the Solaris linker makes bad executables
|
|||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
/* Read-only sections, merged into text segment: */
|
/* Read-only sections, merged into text segment: */
|
||||||
${CREATE_SHLIB-${RELOCATING+. = ${TEXT_START_ADDR} + SIZEOF_HEADERS;}}
|
${CREATE_SHLIB-${RELOCATING+. = ${TEXT_BASE_ADDRESS};}}
|
||||||
${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR} + SIZEOF_HEADERS;}}
|
${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_TEXT_START_ADDR} + SIZEOF_HEADERS;}}
|
||||||
${CREATE_SHLIB-${INTERP}}
|
${CREATE_SHLIB-${INTERP}}
|
||||||
.reginfo ${RELOCATING-0} : { *(.reginfo) }
|
.reginfo ${RELOCATING-0} : { *(.reginfo) }
|
||||||
|
Reference in New Issue
Block a user