aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/init-fini-arrays.s
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2010-02-27 12:34:25 +0000
committerJie Zhang <jie.zhang@analog.com>2010-02-27 12:34:25 +0000
commit3cff7cc71fc25ffa83e7d5ce8f4aeb308fb656db (patch)
tree9fa0a8f6e1ec56367ae6b180392f4d69520074c8 /ld/testsuite/ld-elf/init-fini-arrays.s
parenteb1956643ddbb298d1005c939d3b9fce04980a4a (diff)
downloadgdb-3cff7cc71fc25ffa83e7d5ce8f4aeb308fb656db.zip
gdb-3cff7cc71fc25ffa83e7d5ce8f4aeb308fb656db.tar.gz
gdb-3cff7cc71fc25ffa83e7d5ce8f4aeb308fb656db.tar.bz2
* scripttempl/armbpabi.sc: Don't combine .init_array.* or
.fini_array.* when do relocatable linking. * scripttempl/elf.sc: Likewise. * scripttempl/elf32sh-symbian.sc: Likewise. * scripttempl/elf64hppa.sc: Likewise. * scripttempl/elfxtensa.sc: Likewise. testsuite/ * ld-elf/init-fini-arrays.s: New test. * ld-elf/init-fini-arrays.d: New test.
Diffstat (limited to 'ld/testsuite/ld-elf/init-fini-arrays.s')
-rw-r--r--ld/testsuite/ld-elf/init-fini-arrays.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/init-fini-arrays.s b/ld/testsuite/ld-elf/init-fini-arrays.s
new file mode 100644
index 0000000..8f7a3f7
--- /dev/null
+++ b/ld/testsuite/ld-elf/init-fini-arrays.s
@@ -0,0 +1,6 @@
+ .section .init_array.01000,"aw",%progbits
+ .align 4
+ .word 0
+ .section .fini_array.01000,"aw",%progbits
+ .align 4
+ .word 0