diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 1996-03-07 00:12:34 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 1996-03-07 00:12:34 +0000 |
commit | c56c921821b1e8906e29148d3408dfeec115bf68 (patch) | |
tree | 05f67e819d2bd8ef2e22d6901c31f2fc20513ad7 /ld/scripttempl | |
parent | 6771b6e23c1cd6083ad8a8f2c8e900d660a1cf44 (diff) | |
download | gdb-c56c921821b1e8906e29148d3408dfeec115bf68.zip gdb-c56c921821b1e8906e29148d3408dfeec115bf68.tar.gz gdb-c56c921821b1e8906e29148d3408dfeec115bf68.tar.bz2 |
* scripttmpl/elfppc.sc (.sdata2, .sbss2): Implement Feb 2 change
in a different manner to work around differences in shell variable
expansion.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r-- | ld/scripttempl/elfppc.sc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ld/scripttempl/elfppc.sc b/ld/scripttempl/elfppc.sc index fb77da2..bc2105c 100644 --- a/ld/scripttempl/elfppc.sc +++ b/ld/scripttempl/elfppc.sc @@ -24,8 +24,10 @@ test -z "$ENTRY" && ENTRY=_start test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} test "$LD_FLAG" = "N" && DATA_ADDR=. -INTERP=".interp ${RELOCATING-0} : { *(.interp) }" -PLT=".plt ${RELOCATING-0} : { *(.plt) }" +SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2) }" +SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2) }" +INTERP=".interp ${RELOCATING-0} : { *(.interp) }" +PLT=".plt ${RELOCATING-0} : { *(.plt) }" cat <<EOF OUTPUT_FORMAT("${OUTPUT_FORMAT}", "${BIG_OUTPUT_FORMAT}", "${LITTLE_OUTPUT_FORMAT}") @@ -79,9 +81,8 @@ SECTIONS .fini ${RELOCATING-0} : { *(.fini) } =${NOP-0} .rodata ${RELOCATING-0} : { *(.rodata) } .rodata1 ${RELOCATING-0} : { *(.rodata1) } - ${CREATE_SHLIB- - .sdata2 ${RELOCATING-0} : { *(.sdata2) } - .sbss2 ${RELOCATING-0} : { *(.sbss2) } } + ${CREATE_SHLIB-${SDATA2}} + ${CREATE_SHLIB-${SBSS2}} ${RELOCATING+${OTHER_READONLY_SECTIONS}} /* Adjust the address for the data segment. We want to adjust up to @@ -136,9 +137,8 @@ SECTIONS ${RELOCATING+PROVIDE (_GLOBAL_OFFSET_TABLE_ = .);} .got ${RELOCATING-0} : { *(.got) } .got.plt ${RELOCATING-0} : { *(.got.plt) } - ${CREATE_SHLIB+ - .sdata2 ${RELOCATING-0} : { *(.sdata2) } - .sbss2 ${RELOCATING-0} : { *(.sbss2) } } + ${CREATE_SHLIB+${SDATA2}} + ${CREATE_SHLIB+${SBSS2}} ${RELOCATING+PROVIDE (_GOT_END_ = .);} ${DATA_PLT+${PLT}} |