Explicit locations: introduce explicit locations
[deliverable/binutils-gdb.git] / ld / emulparams / shelf64.sh
index 61a0c8bea8c0443e7cbdb3a77f2e409b7ceb987d..5037f350187c517e0e7cd3d0da9974c369767ac9 100644 (file)
@@ -6,11 +6,13 @@ EXTRA_EM_FILE=
 . ${srcdir}/emulparams/shelf32.sh
 
 # We do not need .cranges
-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) + 0x80000)} :
   {
     ${RELOCATING+_stack = .;}
     *(.stack)
     LONG(0xdeaddead)
   }
 "
+# We do not need .stack for shared library.
+test -n "$CREATE_SHLIB" && OTHER_SECTIONS=""
This page took 0.023199 seconds and 4 git commands to generate.