ELF: Properly redefine PT_GNU_* in terms of PT_LOOS
authorKees Cook <keescook@chromium.org>
Thu, 24 Feb 2022 03:34:31 +0000 (19:34 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 1 Mar 2022 00:53:45 +0000 (16:53 -0800)
commita79caffe7599e2b54d26894edac0184b6335615f
tree67103a255bee6d1b58a432f4475f66a36cc193a4
parent947edbc566c631a2b034cd75b3171b55b63c9968
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: Kees Cook <keescook@chromium.org>
include/uapi/linux/elf.h