This diff extends the output of -elf-section-groups (llvm style, gnu unchanged (since it's meant to be compatible with binutils readelf) with the field Link. This change will enable us to use llvm-readobj -elf-section-groups for testing llvm-objcopy's support for groups (instead of -section-data -sections).
Test plan: make check-all
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'm thinking that we should really either have both the sh_info and the sh_link fields printed, or neither. At the moment, they're kind of implicit in the "Signature" field, since that is the symbol name for the corresponding symbol. If the name is wrong, then we're pointing at either the wrong symbol table or the wrong entry in that table. I suppose there's not technically anything stopping there being multiple symbols with the same name though, under the right circumstances, so having both would allow us to uniquely identify it. However, printing only the link doesn't uniquely identify it.