Nick Clifton
1b51340159
Add a warning if an emtpty SHT_REL, SHT_RELA or SHT_PROGBITS section is detected. Disable all warnings unless the (new) lint mode is enabled.
...
* readelf.c (warn): New function - like elfcomm.c version but only
produces output if warnings are enabled.
(struct options): Add --lint and --enable-checks.
(usage): Add entry for --lint.
(parse_args): Handle -L. If checks are enabled but no dumps have
been selected then enable all dumps.
(process_section_headers): Replace long if-then-else sequence with
a switch. Add warning messages for empty SHT_REL, SHT_RELA and
SHT_PROGBITS sections.
(process_file): Do not complain if the file is an archive and lint
mode has been enabled.
* elfcomm.c (error): Make the function weak.
(warn): Likewise.
* NEWS: Mention the new feature.
* doc/binutils.texi: Document the new feature.
* dwarf.h (report_leb_status): Add file name and line number
parameters. Include them in the diagnostic output.
(READ_ULEB): Pass file and line number to report_leb_status.
(READ_SLEB): Likewise.
* dwarf.c (read_and_print_leb128): Pass file and line number to
report_leb_status.
* testsuite/binutils-all/readelf.exp: Add test of new feature.
* testsuite/binutils-all/zero-sec.s: New test source file.
* testsuite/binutils-all/zero-sec.r: Expected output from new
test.
2020-04-29 16:01:40 +01:00
..
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-04-17 17:25:19 +01:00
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2018-09-15 16:56:55 +09:30
2018-09-15 16:56:55 +09:30
2018-09-15 16:56:55 +09:30
2020-01-01 18:42:54 +10:30
2018-11-07 18:07:36 +00:00
2020-01-01 18:42:54 +10:30
2019-04-16 19:59:55 +09:30
2019-04-16 19:59:55 +09:30
2018-09-15 16:24:18 +09:30
2018-10-11 11:38:10 +01:00
2019-01-08 14:58:03 +00:00
2020-01-01 18:42:54 +10:30
2020-03-02 12:46:47 +00:00
2020-01-01 18:42:54 +10:30
2019-01-17 15:29:43 +00:00
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2017-11-07 17:01:16 +10:30
2020-01-01 18:42:54 +10:30
2018-11-27 11:59:10 +00:00
2018-11-27 11:59:10 +00:00
2020-01-01 18:42:54 +10:30
2017-11-07 17:01:16 +10:30
2017-11-07 17:01:16 +10:30
2020-01-01 18:42:54 +10:30
2020-01-01 18:42:54 +10:30
2020-03-19 16:55:13 +00:00
2020-01-01 18:42:54 +10:30
2020-03-11 10:17:14 +00:00
2020-01-01 18:42:54 +10:30
2019-08-27 16:28:55 +01:00
2020-01-01 18:42:54 +10:30
2018-09-15 16:24:18 +09:30
2018-04-25 21:13:14 +00:00
2018-04-25 21:13:14 +00:00
2020-01-01 18:42:54 +10:30
2018-09-20 13:32:58 +01:00
2018-02-13 22:55:49 +10:30
2018-09-15 16:24:18 +09:30
2018-09-15 16:24:18 +09:30
2018-09-15 16:24:18 +09:30
2019-11-04 11:55:28 +10:30
2019-11-04 11:55:28 +10:30
2017-11-07 17:01:16 +10:30
2020-01-09 13:19:20 +00:00
2017-09-22 17:05:51 -03:00
2017-09-22 17:05:51 -03:00
2017-04-04 09:06:04 -07:00
2020-03-19 16:55:13 +00:00
2018-09-15 16:56:55 +09:30
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2017-08-17 14:51:31 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2018-04-26 15:12:42 +01:00
2018-04-26 15:12:42 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2019-10-25 16:46:07 +01:00
2020-03-30 16:30:02 +01:00
2020-01-01 18:42:54 +10:30
2017-11-07 17:01:16 +10:30
2017-11-15 11:34:03 +00:00
2019-02-25 12:15:41 +00:00
2019-02-25 12:15:41 +00:00
2018-09-20 19:02:50 +02:00
2018-09-15 16:56:55 +09:30
2018-09-13 09:09:15 -07:00
2018-09-13 09:09:15 -07:00
2020-03-02 10:02:02 +00:00
2020-03-02 10:02:02 +00:00
2020-03-27 10:54:26 +00:00
2020-03-27 10:54:26 +00:00
2020-04-29 16:01:40 +01:00
2017-11-15 11:34:03 +00:00
2019-02-22 10:36:24 +00:00
2017-09-22 17:05:51 -03:00
2017-09-22 17:05:51 -03:00
2017-11-07 17:01:16 +10:30
2017-11-07 17:01:16 +10:30
2018-11-07 18:07:36 +00:00
2018-08-31 04:38:25 -07:00
2018-11-07 18:07:36 +00:00
2018-11-07 18:07:36 +00:00
2019-05-20 11:08:23 -07:00
2019-05-20 11:08:23 -07:00
2019-02-25 12:15:41 +00:00
2018-09-17 23:31:18 +09:30
2018-09-17 23:31:18 +09:30
2018-09-17 23:31:18 +09:30
2018-09-17 23:31:18 +09:30
2018-09-17 23:31:18 +09:30
2018-09-17 23:31:18 +09:30
2018-09-17 23:31:18 +09:30
2019-10-02 11:55:02 +01:00
2020-01-01 18:42:54 +10:30
2018-11-09 12:48:23 +00:00
2020-01-01 18:42:54 +10:30
2018-09-20 13:32:58 +01:00
2019-01-16 13:14:59 -08:00
2018-09-20 13:32:58 +01:00
2018-09-20 13:32:58 +01:00
2018-09-20 13:32:58 +01:00
2018-09-15 16:24:18 +09:30
2018-09-15 16:24:18 +09:30
2018-09-17 23:16:48 +09:30
2018-09-17 23:16:48 +09:30
2018-09-17 23:16:48 +09:30
2018-09-15 16:24:18 +09:30
2018-09-17 23:16:48 +09:30
2018-09-17 23:16:48 +09:30
2018-09-17 23:16:48 +09:30
2018-04-10 09:41:25 +09:30
2018-09-17 23:16:48 +09:30
2018-09-17 23:16:48 +09:30
2018-09-17 23:16:48 +09:30
2018-09-15 16:56:55 +09:30
2018-09-15 16:56:55 +09:30
2018-09-15 16:56:55 +09:30
2018-09-15 16:56:55 +09:30
2018-09-15 16:24:18 +09:30
2020-01-01 18:42:54 +10:30
2019-05-14 10:42:25 +01:00
2019-05-14 10:42:25 +01:00
2019-05-14 10:42:25 +01:00
2019-05-14 10:42:25 +01:00
2019-05-14 16:16:56 +01:00
2020-04-29 16:01:40 +01:00
2020-04-29 16:01:40 +01:00