aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/h8500s.sc
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2000-11-03 19:49:05 +0000
committerNick Clifton <nickc@redhat.com>2000-11-03 19:49:05 +0000
commit40a633d5cadf818182a0369e236f58b3c2ed60ae (patch)
tree2ca0a36ea4abc8343d013c41cebe0594921a9ede /ld/scripttempl/h8500s.sc
parent36b0c0e0219069b331db088e9cf7f5b2797e9293 (diff)
downloadgdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.zip
gdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.tar.gz
gdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.tar.bz2
Use ${CONSTRUCTING...} to enclose constructors and destructors.
Diffstat (limited to 'ld/scripttempl/h8500s.sc')
-rw-r--r--ld/scripttempl/h8500s.sc57
1 files changed, 31 insertions, 26 deletions
diff --git a/ld/scripttempl/h8500s.sc b/ld/scripttempl/h8500s.sc
index 11615d8..2567489 100644
--- a/ld/scripttempl/h8500s.sc
+++ b/ld/scripttempl/h8500s.sc
@@ -1,3 +1,11 @@
+TORS="
+ ___ctors = . ;
+ *(.ctors)
+ ___ctors_end = . ;
+ ___dtors = . ;
+ *(.dtors)
+ ___dtors_end = . ;"
+
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
@@ -8,50 +16,47 @@ SECTIONS
{
.text ${RELOCATING+ 0x10000 } :
{
- *(.text)
- ${RELOCATING+ _etext = . ; }
+ *(.text)
+ ${RELOCATING+ _etext = . ; }
}
.rdata ${RELOCATING+ 0x20000 } :
{
- *(.rdata);
- *(.strings)
- ___ctors = . ;
- *(.ctors)
- ___ctors_end = . ;
- ___dtors = . ;
- *(.dtors)
- ___dtors_end = . ;
+ *(.rdata);
+ *(.strings)
+
+ ${CONSTRUCTING+${TORS}}
}
.data ${RELOCATING+ . } :
{
- *(.data)
- ${RELOCATING+ _edata = . ; }
+ *(.data)
+ ${RELOCATING+ _edata = . ; }
}
.bss ${RELOCATING+ .} :
{
- ${RELOCATING+ __start_bss = . ; }
- *(.bss)
- *(COMMON)
- ${RELOCATING+ _end = . ; }
+ ${RELOCATING+ __start_bss = . ; }
+ *(.bss)
+ *(COMMON)
+ ${RELOCATING+ _end = . ; }
}
.stack ${RELOCATING+ 0x2fff0} :
{
- ${RELOCATING+ _stack = . ; }
- *(.stack)
+ ${RELOCATING+ _stack = . ; }
+ *(.stack)
}
- .stab 0 ${RELOCATING+(NOLOAD)} :
- {
- [ .stab ]
- }
- .stabstr 0 ${RELOCATING+(NOLOAD)} :
- {
- [ .stabstr ]
- }
+.stab 0 ${RELOCATING+(NOLOAD)} :
+ {
+ [ .stab ]
+ }
+
+.stabstr 0 ${RELOCATING+(NOLOAD)} :
+ {
+ [ .stabstr ]
+ }
}
EOF