aboutsummaryrefslogtreecommitdiff
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/h8500c.sc
parent * objfiles.c (objfile_relocate): Relocate ei.entry_point with (diff)
downloadbinutils-gdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.tar.gz
binutils-gdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.tar.bz2
binutils-gdb-40a633d5cadf818182a0369e236f58b3c2ed60ae.zip
Use ${CONSTRUCTING...} to enclose constructors and destructors.
Diffstat (limited to 'ld/scripttempl/h8500c.sc')
-rw-r--r--ld/scripttempl/h8500c.sc21
1 files changed, 13 insertions, 8 deletions
diff --git a/ld/scripttempl/h8500c.sc b/ld/scripttempl/h8500c.sc
index 03880e3f068..bc696499986 100644
--- a/ld/scripttempl/h8500c.sc
+++ b/ld/scripttempl/h8500c.sc
@@ -1,3 +1,11 @@
+TORS="
+ ___ctors = . ;
+ *(.ctors)
+ ___ctors_end = . ;
+ ___dtors = . ;
+ *(.dtors)
+ ___dtors_end = . ;"
+
cat <<EOF
OUTPUT_FORMAT("${OUTPUT_FORMAT}")
OUTPUT_ARCH(${ARCH})
@@ -20,15 +28,12 @@ SECTIONS
${RELOCATING+ _edata = . ; }
} ${RELOCATING+ > ram}
-.rdata 0x30000 : {
+.rdata 0x30000 :
+ {
*(.rdata);
- ___ctors = . ;
- *(.ctors)
- ___ctors_end = . ;
- ___dtors = . ;
- *(.dtors)
- ___dtors_end = . ;
-} ${RELOCATING+ > ram}
+
+ ${CONSTRUCTING+${TORS}}
+ } ${RELOCATING+ > ram}
.bss 0x40000 :
{