mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
Support objcopy --remove-section=.relaFOO
* objcopy.c (handle_remove_section_option): Don't require a dot after .rela and .rel to handle a possible relocation section. * testsuite/binutils-all/remove-relocs-07.s, * testsuite/binutils-all/remove-relocs-07.d, * testsuite/binutils-all/remove-relocs-08.d: New tests. * testsuite/binutils-all/remove-relocs-01.d, * testsuite/binutils-all/remove-relocs-04.d, * testsuite/binutils-all/remove-relocs-05.d, * testsuite/binutils-all/remove-relocs-06.d: Exclude mips64-openbsd.
This commit is contained in:
6
binutils/testsuite/binutils-all/remove-relocs-08.d
Normal file
6
binutils/testsuite/binutils-all/remove-relocs-08.d
Normal file
@ -0,0 +1,6 @@
|
||||
#PROG: objcopy
|
||||
#source: remove-relocs-07.s
|
||||
#objcopy: --remove-section=.relFOO --remove-section=.relaFOO
|
||||
#readelf: -r
|
||||
|
||||
There are no relocations in this file\.
|
Reference in New Issue
Block a user