mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
* scripttmpl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
in a different manner to work around differences in shell variable expansion.
This commit is contained in:
@ -24,6 +24,8 @@ test -z "$ENTRY" && ENTRY=_start
|
|||||||
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=.
|
||||||
|
SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2) }"
|
||||||
|
SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2) }"
|
||||||
INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
|
INTERP=".interp ${RELOCATING-0} : { *(.interp) }"
|
||||||
PLT=".plt ${RELOCATING-0} : { *(.plt) }"
|
PLT=".plt ${RELOCATING-0} : { *(.plt) }"
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
@ -79,9 +81,8 @@ SECTIONS
|
|||||||
.fini ${RELOCATING-0} : { *(.fini) } =${NOP-0}
|
.fini ${RELOCATING-0} : { *(.fini) } =${NOP-0}
|
||||||
.rodata ${RELOCATING-0} : { *(.rodata) }
|
.rodata ${RELOCATING-0} : { *(.rodata) }
|
||||||
.rodata1 ${RELOCATING-0} : { *(.rodata1) }
|
.rodata1 ${RELOCATING-0} : { *(.rodata1) }
|
||||||
${CREATE_SHLIB-
|
${CREATE_SHLIB-${SDATA2}}
|
||||||
.sdata2 ${RELOCATING-0} : { *(.sdata2) }
|
${CREATE_SHLIB-${SBSS2}}
|
||||||
.sbss2 ${RELOCATING-0} : { *(.sbss2) } }
|
|
||||||
${RELOCATING+${OTHER_READONLY_SECTIONS}}
|
${RELOCATING+${OTHER_READONLY_SECTIONS}}
|
||||||
|
|
||||||
/* Adjust the address for the data segment. We want to adjust up to
|
/* Adjust the address for the data segment. We want to adjust up to
|
||||||
@ -136,9 +137,8 @@ SECTIONS
|
|||||||
${RELOCATING+PROVIDE (_GLOBAL_OFFSET_TABLE_ = .);}
|
${RELOCATING+PROVIDE (_GLOBAL_OFFSET_TABLE_ = .);}
|
||||||
.got ${RELOCATING-0} : { *(.got) }
|
.got ${RELOCATING-0} : { *(.got) }
|
||||||
.got.plt ${RELOCATING-0} : { *(.got.plt) }
|
.got.plt ${RELOCATING-0} : { *(.got.plt) }
|
||||||
${CREATE_SHLIB+
|
${CREATE_SHLIB+${SDATA2}}
|
||||||
.sdata2 ${RELOCATING-0} : { *(.sdata2) }
|
${CREATE_SHLIB+${SBSS2}}
|
||||||
.sbss2 ${RELOCATING-0} : { *(.sbss2) } }
|
|
||||||
${RELOCATING+PROVIDE (_GOT_END_ = .);}
|
${RELOCATING+PROVIDE (_GOT_END_ = .);}
|
||||||
|
|
||||||
${DATA_PLT+${PLT}}
|
${DATA_PLT+${PLT}}
|
||||||
|
Reference in New Issue
Block a user