Althought non-compliant, there are binaries which have the phdrs placed unaligned in the image. Since we have the code to allocate memory for off-page phdrs, the same code path can be used to handle unaligned phdrs. Relax the requirement for both the activated image and interpreter. PR: 295629
Details
Details
- Reviewers
emaste jhb markj olce - Commits
- rG0b269737f9ca: imgact_elf: handle unaligned phdrs
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Is printing a warning in this case useful, or not worth the trouble?
I don't think so -- we should emit warnings or errors only for things that are actionable. For most users there's nothing for them to do with this information. Unless we imagine someone will see the warning, report an issue to the project responsible for the oddly-formatted binary, and then that project is going to fix their toolchain, we can just ignore it.