Matt Davis
0d0e9c08a4
[llvm-readobj] Display sections that do not belong to a segment in the section-mapping
...
Summary:
The following patch adds the "None" line to the section to segment mapping dump.
That line lists the sections that do not belong to any segment.
I realize that this change differs from GNU readelf which does not display the latter information.
I'd rather not add this "feature" under a command line option. I think that might introduce confusion, since users would have to
make an additional decision as to if they want to see all of the section-to-segment map or just a subset of it.
Another option is to only print the "None" line if the `--section-mapping` option is passed; however,
that might also introduce some confusion, because the section-to-segment map would be different between`--program-headers`
and the `--section-mapping` output. While the difference is just the "None" line, it seems that if we choose to display
the segment-to-section mapping, then we should always display the whole map including the sections
that do not belong to segments.
```
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.ABI-tag .gnu.hash
03 .init_array .fini_array .dynamic
04 .dynamic
05 .note.ABI-tag
06 .eh_frame_hdr
07
08 .init_array .fini_array .dynamic .got
None .comment .symtab .strtab .shstrtab <--- THIS LINE
```
Reviewers: grimar, rupprecht, jhenderson, espindola
Reviewed By: rupprecht
Subscribers: khemant, emaste, arichardson, llvm-commits
Differential Revision: https://reviews.llvm.org/D57700
llvm-svn: 353217
2019-02-05 21:01:01 +00:00
..
2018-08-02 10:45:46 +00:00
2018-02-28 20:22:42 +00:00
2018-06-26 17:04:47 +00:00
2019-01-28 15:03:47 +00:00
2018-02-23 10:15:54 +00:00
2019-01-28 15:03:47 +00:00
2019-01-28 15:03:47 +00:00
2019-01-28 15:03:47 +00:00
2019-01-10 16:26:05 +00:00
2018-03-01 01:19:12 +00:00
2019-01-28 15:03:47 +00:00
2018-11-05 20:39:06 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-07-02 17:48:23 +00:00
2019-01-28 15:03:47 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-08-02 08:07:07 +00:00
2018-08-02 08:13:56 +00:00
2018-08-02 10:45:46 +00:00
2018-03-01 12:36:01 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:02:45 +00:00
2018-07-02 17:48:23 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-06-26 17:04:47 +00:00
2018-03-01 04:21:42 +00:00
2018-06-23 00:15:23 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-07 11:47:15 +00:00
2018-06-06 13:56:51 +00:00
2018-12-10 09:24:49 +00:00
2018-06-26 17:04:47 +00:00
2018-03-13 16:02:45 +00:00
2018-07-02 17:48:23 +00:00
2018-03-23 09:18:31 +00:00
2018-07-02 19:17:03 +00:00
2018-03-01 10:38:51 +00:00
2018-07-02 19:17:03 +00:00
2018-03-01 04:21:42 +00:00
2018-05-15 17:02:35 +00:00
2018-03-13 08:50:36 +00:00
2018-03-01 04:21:42 +00:00
2018-04-09 13:01:50 +00:00
2018-03-01 12:27:04 +00:00
2018-02-26 22:32:15 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:23:48 +00:00
2018-06-26 17:04:47 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-03-01 04:21:42 +00:00
2018-08-02 11:33:54 +00:00
2018-03-01 04:21:42 +00:00
2018-07-02 19:17:03 +00:00
2018-03-13 16:02:45 +00:00
2018-07-02 17:48:23 +00:00
2018-03-13 16:02:45 +00:00
2018-07-03 08:30:55 +00:00
2018-07-02 17:48:23 +00:00
2018-08-29 23:43:38 +00:00
2018-06-26 22:13:32 +00:00
2018-08-28 08:39:21 +00:00
2019-01-28 15:03:47 +00:00
2019-01-28 15:03:47 +00:00
2018-03-13 09:18:11 +00:00
2018-08-02 11:33:54 +00:00
2018-07-25 23:29:15 +00:00
2018-03-07 12:44:18 +00:00
2019-01-28 15:03:47 +00:00
2018-03-13 16:23:48 +00:00
2018-12-06 09:04:52 +00:00
2018-12-06 09:04:52 +00:00
2018-07-02 17:48:23 +00:00
2019-01-28 15:03:47 +00:00
2018-07-05 10:44:17 +00:00
2018-07-05 10:44:17 +00:00
2018-03-13 16:02:45 +00:00
2018-03-02 08:11:58 +00:00
2018-10-12 17:07:32 +00:00
2018-03-05 10:54:03 +00:00
2018-03-26 08:58:16 +00:00
2018-06-23 00:15:23 +00:00
2018-12-04 18:47:44 +00:00
2018-06-26 22:13:32 +00:00
2018-06-26 22:13:32 +00:00
2019-01-28 15:03:47 +00:00
2018-12-06 08:34:52 +00:00
2018-03-13 16:02:45 +00:00
2018-06-26 22:13:32 +00:00
2018-04-05 13:23:59 +00:00
2019-01-28 15:03:47 +00:00
2018-06-26 17:04:47 +00:00
2018-11-05 20:39:06 +00:00
2018-11-05 20:39:06 +00:00
2019-01-28 15:03:47 +00:00
2018-06-06 13:56:51 +00:00
2018-06-06 13:56:51 +00:00
2018-06-06 13:56:51 +00:00
2018-07-03 14:02:52 +00:00
2018-11-05 20:39:06 +00:00
2018-06-26 17:04:47 +00:00
2018-11-05 20:39:06 +00:00
2018-07-30 12:39:54 +00:00
2018-06-23 00:15:23 +00:00
2019-01-28 15:03:47 +00:00
2018-10-12 17:07:32 +00:00
2018-12-03 17:42:57 +00:00
2018-03-13 16:02:45 +00:00
2018-06-26 22:13:32 +00:00
2018-06-27 08:08:12 +00:00
2018-06-27 08:08:12 +00:00
2018-06-27 08:08:12 +00:00
2018-03-13 16:02:45 +00:00
2018-03-13 16:02:45 +00:00
2018-08-09 13:19:10 +00:00
2018-07-03 09:23:25 +00:00
2019-01-22 09:35:47 +00:00
2018-07-02 17:48:23 +00:00
2018-07-05 15:01:44 +00:00
2018-06-23 00:15:23 +00:00
2018-11-01 09:20:06 +00:00
2019-01-28 15:03:47 +00:00
2018-03-13 16:02:45 +00:00
2018-07-02 19:17:03 +00:00
2018-10-12 17:07:32 +00:00
2018-06-26 17:04:47 +00:00
2018-06-26 17:04:47 +00:00
2019-01-28 15:03:47 +00:00
2018-06-26 17:04:47 +00:00
2018-07-02 17:48:23 +00:00
2018-06-26 22:13:32 +00:00
2018-08-04 10:34:52 +00:00
2018-06-23 00:15:23 +00:00
2019-02-05 21:01:01 +00:00
2018-07-02 17:48:23 +00:00
2019-01-10 16:26:05 +00:00
2019-01-10 16:26:05 +00:00
2018-03-13 16:02:45 +00:00
2018-08-09 15:05:25 +00:00
2018-11-05 20:39:06 +00:00
2018-12-06 08:34:52 +00:00
2018-03-13 16:02:45 +00:00
2018-07-02 17:48:23 +00:00
2019-01-10 16:26:05 +00:00
2018-12-19 10:19:40 +00:00
2019-01-10 16:26:05 +00:00
2018-03-13 16:02:45 +00:00
2019-01-28 15:03:47 +00:00
2018-04-10 09:44:44 +00:00
2018-07-02 19:17:03 +00:00
2018-03-13 16:02:45 +00:00
2018-03-24 13:10:19 +00:00
2018-05-08 01:19:16 +00:00
2018-03-01 01:19:12 +00:00
2018-03-01 01:19:12 +00:00
2018-06-26 17:04:47 +00:00
2018-08-06 21:29:41 +00:00
2018-03-13 16:02:45 +00:00
2018-11-05 20:39:06 +00:00
2019-01-28 15:03:47 +00:00
2019-01-08 10:50:59 +00:00