diff options
author | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2003-07-30 02:22:07 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@rr.iij4u.or.jp> | 2003-07-30 02:22:07 +0000 |
commit | 8a1cb15917ef84f3edd35eaa2f044e2b1394d481 (patch) | |
tree | 1dc8d594eac0a5e480453f0d506882c9a5818180 /ld/emulparams | |
parent | 37f4508be1aa888df790dd6e2756df165458792a (diff) | |
download | gdb-8a1cb15917ef84f3edd35eaa2f044e2b1394d481.zip gdb-8a1cb15917ef84f3edd35eaa2f044e2b1394d481.tar.gz gdb-8a1cb15917ef84f3edd35eaa2f044e2b1394d481.tar.bz2 |
* emulparams/shelf.sh (OTHER_SECTIONS): Don't include .stack
section for shared library.
* emulparams/shelf32.sh (OTHER_SECTIONS): Likewise.
* emulparams/shelf64.sh (OTHER_SECTIONS): Likewise.
Diffstat (limited to 'ld/emulparams')
-rw-r--r-- | ld/emulparams/shelf.sh | 5 | ||||
-rw-r--r-- | ld/emulparams/shelf32.sh | 10 | ||||
-rw-r--r-- | ld/emulparams/shelf64.sh | 4 |
3 files changed, 13 insertions, 6 deletions
diff --git a/ld/emulparams/shelf.sh b/ld/emulparams/shelf.sh index 5c0c9d6..ef0de46 100644 --- a/ld/emulparams/shelf.sh +++ b/ld/emulparams/shelf.sh @@ -23,10 +23,11 @@ DTOR_END='___dtors_end = .;' # N.B. We can't use PROVIDE to set the default value in a symbol because # the address is needed to place the .stack section, which in turn is needed # to hold the sentinel value(s). -OTHER_SECTIONS=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : 0x30000)} : +test -z "$CREATE_SHLIB" && OTHER_SECTIONS=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : 0x30000)} : { ${RELOCATING+_stack = .;} *(.stack) LONG(0xdeaddead) }" - +# We do not need .stack for shared library. +test -n "$CREATE_SHLIB" && OTHER_SECTIONS="" diff --git a/ld/emulparams/shelf32.sh b/ld/emulparams/shelf32.sh index 757f6a7..6582b02 100644 --- a/ld/emulparams/shelf32.sh +++ b/ld/emulparams/shelf32.sh @@ -39,14 +39,18 @@ DTOR_END='___dtors_end = .;' # N.B. We can't use PROVIDE to set the default value in a symbol because # the address is needed to place the .stack section, which in turn is needed # to hold the sentinel value(s). -OTHER_SECTIONS=" - .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x40000)} : +test -z "$CREATE_SHLIB" && OTHER_SECTIONS=" + .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x40000)} : { ${RELOCATING+_stack = .;} *(.stack) LONG(0xdeaddead) } - .cranges 0 : { *(.cranges) } + .cranges 0 : { *(.cranges) } +" +# We do not need .stack for shared library. +test -n "$CREATE_SHLIB" && OTHER_SECTIONS=" + .cranges 0 : { *(.cranges) } " # We need to adjust sizes in the .cranges section after relaxation, so diff --git a/ld/emulparams/shelf64.sh b/ld/emulparams/shelf64.sh index 61a0c8b..eb1f6c7 100644 --- a/ld/emulparams/shelf64.sh +++ b/ld/emulparams/shelf64.sh @@ -6,7 +6,7 @@ EXTRA_EM_FILE= . ${srcdir}/emulparams/shelf32.sh # We do not need .cranges -OTHER_SECTIONS=" +test -z "$CREATE_SHLIB" && OTHER_SECTIONS=" .stack ${RELOCATING-0}${RELOCATING+(DEFINED(_stack) ? _stack : ALIGN (0x40000) + 0x40000)} : { ${RELOCATING+_stack = .;} @@ -14,3 +14,5 @@ OTHER_SECTIONS=" LONG(0xdeaddead) } " +# We do not need .stack for shared library. +test -n "$CREATE_SHLIB" && OTHER_SECTIONS="" |