summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/extract-symbol-1sym.d
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2007-03-01 16:39:42 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2007-03-01 16:39:42 +0000
commit00d811eb7934ed453fcf839a8319512fa3435540 (patch)
tree759b1229567dcc73bb4c8d4a4d9d85a15cc2607c /ld/testsuite/ld-elf/extract-symbol-1sym.d
parent13b2f372610f66e130eb4984bf0a94c5210a61d5 (diff)
downloadbinutils-redhat-00d811eb7934ed453fcf839a8319512fa3435540.tar.gz
binutils/
200x-xx-xx Phil Edwards <phil@codesourcery.com> Richard Sandiford <richard@codesourcery.com> * NEWS: Mention addition of --extract-symbol. * doc/binutils.texi: Document it. * objcopy.c (extract_symbol): New variable. (OPTION_EXTRACT_SYMBOLS): New command_line_switch. (copy_options): Add an entry for --extract-symbol. (copy_usage): Mention --extract-symbol. (copy_object): Set the start address to zero for --extract-symbol. Do not copy private BFD data in that case. (setup_section): Set the size, LMA and VMA to zero for --extract-symbol. Do not copy private BFD data in that case. (copy_section): Do not copy section contents if --extract-symbol is passed. (copy_main): Set extract_symbol to TRUE if --extract-symbol is passed. ld/testsuite/ * ld-elf/extract-symbol-1sym.d, ld-elf/extract-symbol-1sec.d, * ld-elf/extract-symbol-1.s, ld-elf/extract-symbol-1.ld: New tests. * ld-elf/binutils.exp: Run them.
Diffstat (limited to 'ld/testsuite/ld-elf/extract-symbol-1sym.d')
-rw-r--r--ld/testsuite/ld-elf/extract-symbol-1sym.d10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/extract-symbol-1sym.d b/ld/testsuite/ld-elf/extract-symbol-1sym.d
new file mode 100644
index 0000000000..bf48e5cbfa
--- /dev/null
+++ b/ld/testsuite/ld-elf/extract-symbol-1sym.d
@@ -0,0 +1,10 @@
+#name: --extract-symbol test 1 (symbols)
+#source: extract-symbol-1.s
+#ld: -Textract-symbol-1.ld
+#objcopy_linked_file: --extract-symbol
+#nm: -n
+0*00010010 T B
+0*00020123 T C
+0*00030000 A _entry
+0*00040000 A linker_symbol
+0*12345678 A D