Details
- Reviewers
davide
Diff Detail
Event Timeline
This can be probably separated in two commits, which sorts and the other one which adds PT_NOTE.
For 1), LGTM, and you can probably commit it as is. For 2), please add a test and I'll take another look.
For 2), please add a test and I'll take another look.
I couldn't find any existing examples of similar tests - we need a linked binary here so we have phdrs. Do you have any suggestions? We could make use of lld perhaps?
I don't think it's reasonable to call lld in the test as it's a subproject and that would violate the property of llvm test suite being self-contained. When I had to deal with this in the past I checked in a binary or used yaml2obj to craft an object. If you go for 1) I recommend to add precise instructions on how you created the binary (i.e. source code + clang/lld invocation etc..)
When I had to deal with this in the past I checked in a binary or used yaml2obj to craft an object.
OK. yaml2obj can't create phdr entries so I'll see about crafting a small binary that could be checked in.
PT_NOTE was implemented as r292170. You can probably rebase and sort the strings, still.