commit | 2e42dc4328a8944263711ae23b1a34f7f47cb37c | [log] [tgz] |
---|---|---|
author | Martin Liska <mliska@suse.cz> | Fri Nov 25 14:27:19 2022 +0100 |
committer | Martin Liska <mliska@suse.cz> | Mon Nov 28 10:56:27 2022 +0100 |
tree | ed98c8870c917236d323f488fbcdea047e11ad65 | |
parent | 274f2376c458ba62534740d1a29e841e930aeda7 [diff] |
readelf: print warning for -sW The option -s accepts in elfutils (compared to binutils) a positional argument that is name of a symbol table section which should be printed. Thus, print a reasonable warning if -sW is used: ./src/readelf -sW a.out WARNING: cannot find section: 'W' PR29719 src/ChangeLog: * readelf.c (print_symtab): Change signature and return true if something is printed. (process_elf_file): Use it and print warning. tests/ChangeLog: * run-readelf-s.sh: Test -sW.