[PATCH 2/2] Handle SHF_GNU_RETAIN in eu-readelf and eu-elflint.

Dmitry V. Levin ldv@altlinux.org
Wed Dec 16 10:49:30 GMT 2020


On Sat, Dec 12, 2020 at 11:38:55PM +0100, Mark Wielaard wrote:
> readelf -S now shows 'R' when SHF_GNU_RETAIN is set.
> elflint accepts SHF_GNU_RETAIN when set on section in --gnu mode.
> 
> Signed-off-by: Mark Wielaard <mark@klomp.org>
> ---
>  src/ChangeLog               |   5 ++++
>  src/elflint.c               |   3 +++
>  src/readelf.c               |   2 ++
>  tests/ChangeLog             |   7 ++++++
>  tests/Makefile.am           |   2 ++
>  tests/run-retain.sh         |  44 ++++++++++++++++++++++++++++++++++++
>  tests/testfile-retain.o.bz2 | Bin 0 -> 261 bytes
>  7 files changed, 63 insertions(+)
>  create mode 100755 tests/run-retain.sh
>  create mode 100644 tests/testfile-retain.o.bz2

LGTM, thanks,


-- 
ldv


More information about the Elfutils-devel mailing list