llvm-project/llvm/test/tools/llvm-objcopy
Igor Kudrin 7b424b9333 [llvm-objcopy] Rename relocation sections together with their targets.
As for now, llvm-objcopy renames only sections that are specified
explicitly in --rename-section, while GNU objcopy keeps names of
relocation sections in sync with their targets. For example:

> readelf -S test.o
...
  [ 1] .foo      PROGBITS
  [ 2] .rela.foo RELA

> objcopy --rename-section .foo=.bar test.o gnu.o
> readelf -S gnu.o
...
  [ 1] .bar      PROGBITS
  [ 2] .rela.bar RELA

> llvm-objcopy --rename-section .foo=.bar test.o llvm.o
> readelf -S llvm.o
...
  [ 1] .bar      PROGBITS
  [ 2] .rela.foo RELA

This patch makes llvm-objcopy to match the behavior of GNU objcopy better.

Differential Revision: https://reviews.llvm.org/D110352
2021-09-29 16:36:37 +07:00
..
COFF [llvm-objcopy][COFF] Fix test for debug dir presence 2021-09-10 09:57:18 +01:00
ELF [llvm-objcopy] Rename relocation sections together with their targets. 2021-09-29 16:36:37 +07:00
Inputs
MachO [llvm-objcopy][MachO] Ignore all LC_SUB_* commands. 2021-07-28 17:35:26 -07:00
wasm [WebAssembly][libObject] Avoid re-use of Section object during parsing 2021-09-10 09:30:50 -04:00
dash-dash.test [llvm-strip] Add support for '--' for delimiting options from input files 2021-05-20 03:33:51 -07:00
grouped-options.test [test] Use double pound to denote comments. 2021-07-15 17:39:34 -07:00
redefine-symbols.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
tool-help-message.test [OptTable] Reapply Improve error message output for grouped short options 2021-09-03 11:13:52 +01:00
tool-name.test [llvm-objcopy][MachO] Add llvm-bitcode-strip driver 2020-09-18 18:13:05 -07:00
tool-version.test [llvm-objcopy][MachO] Add llvm-bitcode-strip driver 2020-09-18 18:13:05 -07:00