This is an archive of the discontinued LLVM Phabricator instance.

[yaml2obj] - Add a way to describe content of the SHT_GNU_verneed section with "Content".
ClosedPublic

Authored by grimar on Nov 28 2019, 5:30 AM.

Details

Summary

There is no way to set raw content for SHT_GNU_verneed section.
This patch implements it.

Diff Detail

Event Timeline

grimar created this revision.Nov 28 2019, 5:30 AM
jhenderson accepted this revision.Nov 28 2019, 5:53 AM

LGTM. Given the number of similar sections that share this style (i.e. Content or Some Stuff - entries, relocations ...), I wonder if a refactor is in order to share the sort of thing you're adding here between the various section types?

This revision is now accepted and ready to land.Nov 28 2019, 5:53 AM
grimar added a comment.EditedNov 28 2019, 6:11 AM

Given the number of similar sections that share this style (i.e. Content or Some Stuff - entries, relocations ...), I wonder if a refactor is in order to share the sort of thing you're adding here between the various section types?

We can probably move "Content" and "Size" to "Section" class or may be even to "Chunk". It probably will save not that much lines though (but still better than nothing). I need to think more about it.

This revision was automatically updated to reflect the committed changes.