Add a hook to enable load-time inspection of program headers
authorMatthew Fortune <matthew.fortune@imgtec.com>
Wed, 1 Oct 2014 16:08:51 +0000 (17:08 +0100)
committerMatthew Fortune <matthew.fortune@imgtec.com>
Fri, 31 Oct 2014 22:19:23 +0000 (22:19 +0000)
commitd6f373d21b19565838cb9848c15b8070f2fe1305
treeccbe085a65f298929ae132d09daf1786533a29d0
parent67c379871ed04c4494f3fb01b012504d6cf63f6e
Add a hook to enable load-time inspection of program headers

This hook can be used to perform additional compatibility checks
between shared libraries by inspecting custom program header
information.

* elf/dl-machine-reject-phdr.h: New file.
* elf/dl-load.c: #include that.
(open_verify): Call elf_machine_reject_phdr_p and ignore the file
if that returned true.
ChangeLog
elf/dl-load.c
elf/dl-machine-reject-phdr.h [new file with mode: 0644]