llvm-project/llvm/test
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
..
Analysis [CostModel][X86] Add UMUL fixed point cost tests 2019-02-05 10:55:38 +00:00
Assembler Move some llvm-mc tests where they belong 2019-02-05 20:12:48 +00:00
Bindings [LLVM-C] Add Bindings to GlobalIFunc 2019-02-05 18:05:44 +00:00
Bitcode Revert "[Sanitizers] UBSan unreachable incompatible with ASan in the presence of `noreturn` calls" 2019-01-24 18:04:21 +00:00
BugPoint
CodeGen [WebAssembly] Lower memmove to memory.copy 2019-02-05 20:57:40 +00:00
DebugInfo [DEBUG_INFO][NVPTX] Generate DW_AT_address_class to get the values in debugger. 2019-02-05 19:33:47 +00:00
Demangle
Examples
ExecutionEngine
Feature
FileCheck Recommit: Detect incorrect FileCheck variable CLI definition 2019-02-05 14:17:28 +00:00
Instrumentation [Sanitizers] UBSan unreachable incompatible with Kernel ASan 2019-02-04 23:37:50 +00:00
Integer
JitListener
LTO [LTO] Record whether LTOUnit splitting is enabled in index 2019-01-11 18:31:57 +00:00
Linker Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
MC Move some llvm-mc tests where they belong 2019-02-05 20:12:48 +00:00
Object [WebAssembly] Rename relocations from R_WEBASSEMBLY_ to R_WASM_ 2019-02-04 17:28:46 +00:00
ObjectYAML [WebAssembly] Rename relocations from R_WEBASSEMBLY_ to R_WASM_ 2019-02-04 17:28:46 +00:00
Other [SamplePGO] More pipeline changes when flattened profile used in ThinLTO postlink 2019-02-05 04:09:19 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [TblGen] Extend !if semantics through new feature !cond 2019-01-25 10:25:25 +00:00
ThinLTO/X86 Try to make new test more resilient to different orderings 2019-01-29 02:04:01 +00:00
Transforms [CGP] add test for unsigned subtract of 1 with overflow; NFC 2019-02-05 15:27:40 +00:00
Unit
Verifier GlobalISel: Verify G_GEP 2019-02-05 20:04:12 +00:00
YAMLParser
tools [llvm-readobj] Display sections that do not belong to a segment in the section-mapping 2019-02-05 21:01:01 +00:00
.clang-format
CMakeLists.txt Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [llvm] 2019-01-19 00:10:54 +00:00
TestRunner.sh
lit.cfg.py Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [llvm] 2019-01-19 00:10:54 +00:00
lit.site.cfg.py.in Use llvm_canonicalize_cmake_booleans for LLVM_LIBXML2_ENABLED [llvm] 2019-01-19 00:10:54 +00:00