diff options
author | Nick Clifton <nickc@redhat.com> | 2000-11-08 22:57:05 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-11-08 22:57:05 +0000 |
commit | 2fc047a63e36a7e2df3e9c021c0668d454f3f877 (patch) | |
tree | 8665545a718df379f19183c66227ee04488c5e3d /ld/scripttempl/h8500b.sc | |
parent | 868b375a3021d759c15f5bcbaeb6c0f29603f497 (diff) | |
download | gdb-binutils-2_10-branch.zip gdb-binutils-2_10-branch.tar.gz gdb-binutils-2_10-branch.tar.bz2 |
Use ${CONSTRUCTING...} to enclose constructors and destructors.binutils-2_10-branch
Diffstat (limited to 'ld/scripttempl/h8500b.sc')
-rw-r--r-- | ld/scripttempl/h8500b.sc | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ld/scripttempl/h8500b.sc b/ld/scripttempl/h8500b.sc index ef5fa2c..a64eebc 100644 --- a/ld/scripttempl/h8500b.sc +++ b/ld/scripttempl/h8500b.sc @@ -1,3 +1,11 @@ +TORS=" + ___ctors = . ; + *(.ctors) + ___ctors_end = . ; + ___dtors = . ; + *(.dtors) + ___dtors_end = . ;" + cat <<EOF OUTPUT_FORMAT("${OUTPUT_FORMAT}") OUTPUT_ARCH(${ARCH}) @@ -24,13 +32,9 @@ SECTIONS { *(.rdata); *(.strings) - ___ctors = . ; - *(.ctors) - ___ctors_end = . ; - ___dtors = . ; - *(.dtors) - ___dtors_end = . ; -} + + ${CONSTRUCTING+${TORS}} + } .bss ${RELOCATING+ 0x40000} : { |