aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/attributes.ld
diff options
context:
space:
mode:
authorSimon Dardis <Simon.Dardis@imgtec.com>2015-10-19 14:32:54 +0100
committerNick Clifton <nickc@redhat.com>2015-10-19 14:32:54 +0100
commit15a70cda9772c5775f471182fea70b3fd28b76f0 (patch)
tree7e9da7f9b892620246850d488bcdfa0eb4b68b70 /ld/testsuite/ld-elf/attributes.ld
parente12fe5554c3b70139f68e33ded9e2a8075b9d484 (diff)
downloadbinutils-15a70cda9772c5775f471182fea70b3fd28b76f0.zip
binutils-15a70cda9772c5775f471182fea70b3fd28b76f0.tar.gz
binutils-15a70cda9772c5775f471182fea70b3fd28b76f0.tar.bz2
Add test to ensure that ternary linker script operators copy symbol flags.
* ld-elf/attributes.d: New test for symbol attribute copying. * ld-elf/attributes.ld: Part of above. * ld-elf/attributes.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elf/attributes.ld')
-rw-r--r--ld/testsuite/ld-elf/attributes.ld9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/attributes.ld b/ld/testsuite/ld-elf/attributes.ld
new file mode 100644
index 0000000..f6cfe4a
--- /dev/null
+++ b/ld/testsuite/ld-elf/attributes.ld
@@ -0,0 +1,9 @@
+PROVIDE ( __start = DEFINED(start) ? start : 0xbfc00000);
+ENTRY (__start)
+SECTIONS
+{
+ .text :
+ {
+ *(.text)
+ }
+}