llvm-project/llvm/test/tools/llvm-objcopy
Jordan Rupprecht c140810ea1 [llvm-readobj] Include section name of notes.
This changes the output of `llvm-readelf -n` from:

```
Displaying notes found at file offset 0x<...> with length 0x<...>:
```

to:

```
Displaying notes found in: .note.foo
```

And similarly, adds a `Name:` field to the `llvm-readobj -n` output for notes.

This change not only increases GNU compatibility, it also makes it much easier to read notes. Note that we still fall back to printing the file offset/length in cases where we don't have a section name, such as when printing notes in program headers or printing notes in a partially stripped file (GNU readelf does the same).

Fixes llvm.org/PR41339.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D75647
2020-03-05 09:53:14 -08:00
..
COFF [llvm-objcopy][COFF] Add support for --set-section-flags 2020-01-24 07:12:55 -08:00
ELF [llvm-readobj] Include section name of notes. 2020-03-05 09:53:14 -08:00
Inputs [llvm-objcopy] [COFF] Fix handling of aux symbols for big objects 2019-01-23 11:54:51 +00:00
MachO [llvm-objcopy] Enable --discard-all for MachO 2020-02-26 12:51:15 -08:00
wasm [llvm-objcopy] Fix pipeline syntax 2020-02-12 11:35:00 +01:00
redefine-symbols.test [test] Use yaml2obj -o %t instead of > %t 2020-01-21 17:20:18 -08:00