]> git.ipfire.org Git - thirdparty/elfutils.git/commit
elflint: add additional lints to LOAD, INTERP and PHDR segments
authorFabian Rast <fabian.rast@tum.de>
Fri, 20 Mar 2026 13:50:35 +0000 (14:50 +0100)
committerAaron Merey <amerey@redhat.com>
Mon, 23 Mar 2026 22:31:24 +0000 (18:31 -0400)
commit9dcad17de8653e61372b715c03dc201d3ba7b449
tree5efd5bb9728d590e29aec85ca9c2107d06412422
parent99999b28054eee4a6100a6237699646655d9fd61
elflint: add additional lints to LOAD, INTERP and PHDR segments

* src/elflint.c (check_program_header):
- PT_PHDR may not occur more than once
- PT_INTERP must precede any loadable segment entry
- PT_LOAD entries must be sorted on the p_vaddr member

Signed-off-by: Fabian Rast <fabian.rast@tum.de>
src/elflint.c