aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r--ld/testsuite/ld-elf/attributes.d10
-rw-r--r--ld/testsuite/ld-elf/attributes.ld9
-rw-r--r--ld/testsuite/ld-elf/attributes.s5
3 files changed, 24 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/attributes.d b/ld/testsuite/ld-elf/attributes.d
new file mode 100644
index 0000000..79afd14
--- /dev/null
+++ b/ld/testsuite/ld-elf/attributes.d
@@ -0,0 +1,10 @@
+#name: Symbol flags copy
+#ld: -T attributes.ld
+#objdump: -t
+#notarget: pj-*-* dlx-*-* d30v-*-*
+
+#...
+0+0000000 g F .text 0+0000000 __start
+#...
+0+0000000 g F .text 0+0000000 start
+#pass
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)
+ }
+}
diff --git a/ld/testsuite/ld-elf/attributes.s b/ld/testsuite/ld-elf/attributes.s
new file mode 100644
index 0000000..bb47536
--- /dev/null
+++ b/ld/testsuite/ld-elf/attributes.s
@@ -0,0 +1,5 @@
+ .text
+ .globl start
+ .type start, %function
+start:
+ .byte 0