diff options
author | Ronald Hoogenbllon <rhoogenboom@irdeto.com> | 2015-10-21 15:16:35 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-10-21 15:16:35 +0100 |
commit | 2b35fb28f397a26c0da03f7579116d28af2af824 (patch) | |
tree | 7dc8a9042b84587fa9c317fbf1feda1caf6a1f97 /binutils/testsuite/binutils-all/objcopy.exp | |
parent | 1283d92f0e4704bb31b1e163b9c88216756ef62c (diff) | |
download | binutils-gdb-2b35fb28f397a26c0da03f7579116d28af2af824.tar.gz |
Add ability for objcopy to insert new symbols into a binary.
PR binutils/19104
binutils * objcopy.c (command_line_switch): Add OPTION_ADD_SYMBOL.
(copy_options): Add add-symbol.
(copy_usage): Likewise.
(parse_symflags): New function.
(need_sym_before): New function.
(create_new_symbol): New function.
(filter_symbols): Add code to insert new symbols.
(copy_main): Process OPTION_ADD_SYMBOL.
* doc/binutils.texi: Document new feature.
* NEWS: Add note about the new feature.
tests * binutils-all/add-symbol.d: New test.
* binutils-all/objcopy.exp: Run the new test.
Diffstat (limited to 'binutils/testsuite/binutils-all/objcopy.exp')
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 252cb490928..bac0ccdb156 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -1097,6 +1097,7 @@ if [is_elf_format] { run_dump_test "testranges-ia64" run_dump_test "add-section" + run_dump_test "add-symbol" run_dump_test "add-empty-section" run_dump_test "exclude-1a" |