Skip to content
Commit 4f0bfdfd authored by Kees Cook's avatar Kees Cook
Browse files

ELF: Properly redefine PT_GNU_* in terms of PT_LOOS



The PT_GNU_* program header types are actually offsets from PT_LOOS,
so redefine them as such, reorder them, and add the missing PT_GNU_RELRO.

Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Peter Collingbourne <pcc@google.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 7dc6ea7c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment