binutils-gdb/binutils/testsuite/binutils-all
Fāng-ruì Sòng 64f52b3ec1 Implement objcopy/strip --keep-section=<sectionpattern>
llvm-objcopy and llvm-strip support an option --keep-section that
keeps some sections from being removed.

	* objcopy.c (enum option_values): Add OPTION_KEEP_SECTION.
	(SECTION_CONTEXT_KEEP): Define.  Adjust other SECTION_CONTEXT macros.
	(copy_usage): Describe --keep-section.
	(strip_usage): Likewise.
	(copy_main): Handle SECTION_CONTEXT_KEEP.
	(strip_main): Likewise.
	(is_strip_section_1): Likewise.
	* testsuite/binutils-all/objcopy.exp: Add tests.
	* testsuite/binutils-all/keep-section-1.d: New test driver file.
	* testsuite/binutils-all/keep-section-2.d: Likewise.
	* doc/binutils.texi: Document the new feature.
	* NEWS: Mention the new feature.
2019-11-04 11:55:28 +10:30
..
aarch64 AArch64: Add SVE DWARF registers 2019-05-21 11:05:22 +01:00
arc
arm Arm: Skip tests on WINCE that require mapping symbols 2019-08-09 09:07:45 +01:00
bfin
hppa
i386 Change the output of readelf's note display so that the "Data size" column header is left justified. 2019-08-08 17:04:31 +01:00
m68k
mips
nfp
vax
wasm32
windres
x86-64 Change the output of readelf's note display so that the "Data size" column header is left justified. 2019-08-08 17:04:31 +01:00
add-empty-section.d
add-section.d
add-symbol.d
alias-2.def
alias.def
ar.exp Add a --output=<DIR> option to ar to allow the specifying of an output directory. 2019-10-30 10:50:23 +00:00
bintest.s
common-1.s
common-1a.d
common-1b.d
common-1c.d
common-1d.d
common-1e.d
common-1f.d
common-2.s
common-2a.d
common-2b.d
common-2c.d
common-2d.d
common-2e.d
common-2f.d
compress.exp Fix spelling mistakes in binutils testsuite. 2019-05-01 16:52:51 +01:00
copy-1.d
copy-1.s
copy-2.d ns32k testsuite tidy 2019-04-16 19:59:55 +09:30
copy-3.d ns32k testsuite tidy 2019-04-16 19:59:55 +09:30
copy-4.d
copy-5.d
copy-6.d
copytest.s
cxxfilt.exp
data-sections.s
debug_str.d
debug_str.s
debuglink.s Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
disasm.s
dlltool.exp
dumptest.s
dw2-1.S
dw2-1.W
dw2-2.S
dw2-3.rS
dw2-3.rt
dw2-3.S
dw2-3.W
dw2-3gabi.W
dw2-compressed.S
dw2-decodedline-1.S
dw2-decodedline.S
dw2-empty.S
dw2-ranges.S
dw2-ranges.W
dw5.S
dw5.W
dwarf-attributes.S Improve the DWARF decoder's ability to describe the DW_AT_discr_list attribute. 2019-08-27 16:28:55 +01:00
dwarf-attributes.W Improve the DWARF decoder's ability to describe the DW_AT_discr_list attribute. 2019-08-27 16:28:55 +01:00
dwo.s
elfedit-1.d
elfedit-2.d
elfedit-3.d
elfedit-4.d
elfedit-5.d
elfedit.exp
empty
empty-file
empty.s
exclude-1.s
exclude-1a.d
exclude-1b.d
fastcall.def
group-2.s
group-3.s
group-4.s
group-5.d
group-5.s
group-6.d
group-6.s
group-7.s
group-7a.d
group-7b.d
group-7c.d
group.s
keep-section-1.d Implement objcopy/strip --keep-section=<sectionpattern> 2019-11-04 11:55:28 +10:30
keep-section-2.d Implement objcopy/strip --keep-section=<sectionpattern> 2019-11-04 11:55:28 +10:30
libdw2-compressed.out
libdw2-compressedgabi.out
libdw2.out
link-order.s
linkdebug.s Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
localize-hidden-1.d
localize-hidden-1.s
localize-hidden-2.d
localize-hidden-2.s
locview-1.s
locview-2.s
mbind1.s
needed-by-reloc.s
nm-1.s
nm-elf-1.s
nm-ver.s
nm.exp binutils: add support for eBPF 2019-05-23 19:34:21 +02:00
note-1.d
note-2-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-2-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-2-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-2-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-3.32.s
note-4-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-4-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-4-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-4-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-5.d
note-5.s
note-6-32.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-6-32.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-6-64.d Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
note-6-64.s Improve objcopy's note mergeing capabilities. 2019-10-25 16:46:07 +01:00
objcopy.exp Implement objcopy/strip --keep-section=<sectionpattern> 2019-11-04 11:55:28 +10:30
objdump.exp AArch64: Fix objdump tests 2019-09-19 13:15:52 +01:00
objdump.s
objdump.W
objdump.Wk
objdump.WK2 Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
objdump.WK3 Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
objdump.WL
only-section-01.d
pr18374.s
pr19020.in
pr19020a.d
pr19020b.d
pr19547.c
pr23633.d
pr23633.list
pr23633.s
readelf.exp Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
readelf.h
readelf.k
readelf.k2 Extend readelf and objdump so that they will display and follow multiple links to separate debug information files. 2019-02-22 10:36:24 +00:00
readelf.locview-1
readelf.locview-2
readelf.n
readelf.pr18374
readelf.r
readelf.r-64
readelf.s
readelf.s-64
readelf.ss
readelf.ss-64
readelf.ss-mips [MIPS] PR gas/14798: Limit IRIX5 specific default typing to IRIX targets 2019-05-20 11:08:23 -07:00
readelf.ss-tmips [MIPS] PR gas/14798: Limit IRIX5 specific default typing to IRIX targets 2019-05-20 11:08:23 -07:00
readelf.wa
readelf.wKis Extend objdump's --dwarf=follow-links option so that separate debug info files will also be affected by other dump function, and symbol tables from separate debug info files will be used when disassembling the main file. 2019-02-25 12:15:41 +00:00
readelf.z
remove-relocs-01.d
remove-relocs-01.s
remove-relocs-02.d
remove-relocs-03.d
remove-relocs-04.d
remove-relocs-05.d
remove-relocs-06.d
remove-relocs-07.d
remove-relocs-07.s
remove-relocs-08.d
remove-section-01.d
set-section-alignment.d Change objcopy's --set-section-alignment option to take a byte alignment value rather than a power of two alignment value. 2019-10-02 11:55:02 +01:00
size.exp binutils: Add new GNU format mode to size utility 2019-02-08 11:07:24 +00:00
strings-1.bin
strings.exp
strip-1.d
strip-2.d
strip-3.d
strip-4.d
strip-5.d
strip-6.d
strip-7.d
strip-8.d
strip-9.d
strip-10.d
strip-11.d
strip-12.d
strip-12.s
strip-13.d
strip-13mips64.s
strip-13rel.s
strip-13rela.s
strip-14.d
strip-14mips64.s
strip-14rel.s
strip-14rela.s
strip-15.d
strip-15mips64.s
strip-15rel.s
strip-15rela.s
symbols-1.d
symbols-2.d
symbols-3.d
symbols-4.d
symbols.s
testprog.c
testranges-ia64.d
testranges-ia64.s
testranges.d
testranges.s
unique.s
unknown.s
update-1.s
update-2.s
update-3.s
update-4.s
update-section.exp
verilog-1.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilog-2.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilog-4.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilog-8.hex Add new option to objcopy: --verilog-data-width. Use this option to set the size of byte bundles generated in verilog format files. 2019-05-14 10:42:25 +01:00
verilogtest.s Add missing verilogtest.s file. 2019-05-14 16:16:56 +01:00
version.def
version.s
z.s