This is a follow up for D46623.
It cleans the existent test case and adds one more to
test the notes better.
Differential D46690
[ELF] - Improve the test cases for notes sections. grimar on May 10 2018, 5:28 AM. Authored by
Details This is a follow up for D46623. It cleans the existent test case and adds one more to
Diff Detail Event TimelineComment Actions note-noalloc2.s is close to my original test, I think that's reasonable. For the note-noalloc.s change we've lost the check that the non-alloc note still has a section. I think we should keep that.
Comment Actions See. I am checking that PT_NOTE has a 16 bytes size (so that is including only "a" section).
And we will emit the PT_NOTE for both. Your change changed how PT_NOTES are emitted., it did not change how we emit the output sections. Comment Actions After the second look, I think it is ok to add check here that we still keep non-a section and keep its SHT_NOTE flag for safety though. I'll update the patch. Comment Actions Yes, a safety check that we don't accidentally break this in the future was my main concern. As @ruiu said in the other review it seems the ghc folks are using the non-alloc note effectively as a .comment section and I'd like to confirm we maintain that functionality.
|
aww