This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj] - Support the "Offset" key for the .dynsym section.
ClosedPublic

Authored by grimar on Oct 27 2020, 4:52 AM.

Details

Summary

Our "implicit" sections are handled separately from regular ones.
It turns out that the "Offset" key is not handled properly for them.

Perhaps we can generalize handling in one place, but before doing that I'd like
to add support and test cases for each implicit section.
(I need this particular single change to unblock another patch that is already on review,
and I guess doing it independently for each section will be cleaner, see below).

In this patch I've removed explicit-dynsym-no-dynstr.yaml to dynsym-section.yaml
and added the new test into. In a follow-up we probably might want
to merge 2 another existent dynsymtab-*.yaml tests into it too.

Diff Detail

Event Timeline

grimar created this revision.Oct 27 2020, 4:52 AM
Herald added a project: Restricted Project. · View Herald Transcript
grimar requested review of this revision.Oct 27 2020, 4:52 AM
grimar edited the summary of this revision. (Show Details)Oct 27 2020, 4:55 AM
grimar retitled this revision from [yaml2obj] - Support the "Offset" key for the .dynstr section. to [yaml2obj] - Support the "Offset" key for the .dynsym section..
This revision is now accepted and ready to land.Oct 28 2020, 2:31 AM
llvm/test/tools/yaml2obj/ELF/dynsym-section.yaml