aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/add-symbol.d
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/testsuite/binutils-all/add-symbol.d')
-rw-r--r--binutils/testsuite/binutils-all/add-symbol.d16
1 files changed, 16 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/add-symbol.d b/binutils/testsuite/binutils-all/add-symbol.d
new file mode 100644
index 0000000..d421dc9
--- /dev/null
+++ b/binutils/testsuite/binutils-all/add-symbol.d
@@ -0,0 +1,16 @@
+#PROG: objcopy
+#name: objcopy add-symbol
+#source: symbols.s
+#objcopy: --add-symbol NEW=0x1234 --add-symbol NEW_DATA=.data:0x4321,local
+#objdump: --syms
+# MIPS targets swap the order of the symbols in the output.
+#not-target: mips-*-* tx39-*-*
+
+.*: +file format .*
+
+SYMBOL TABLE:
+#...
+0+04321 l[ ]+.data[ ]+0+00 NEW_DATA
+#...
+0+01234 g[ ]+\*ABS\*[ ]+0+00 NEW
+#pass