]>
Commit | Line | Data |
---|---|---|
8c7040e4 MK |
1 | diff -urNp -x '*.orig' elfutils-0.183.org/libebl/eblsegmenttypename.c elfutils-0.183/libebl/eblsegmenttypename.c |
2 | --- elfutils-0.183.org/libebl/eblsegmenttypename.c 2021-02-07 18:54:39.000000000 +0100 | |
3 | +++ elfutils-0.183/libebl/eblsegmenttypename.c 2021-05-05 21:02:25.910006052 +0200 | |
4 | @@ -67,6 +67,8 @@ ebl_segment_type_name (Ebl *ebl, int seg | |
9e90505c | 5 | res = "GNU_RELRO"; |
3ba9e4f4 JB |
6 | else if (segment == PT_GNU_PROPERTY) |
7 | res = "GNU_PROPERTY"; | |
9e90505c JB |
8 | + else if (segment == PT_PAX_FLAGS) |
9 | + res = "PAX_FLAGS"; | |
10 | else if (segment == PT_SUNWBSS) | |
11 | res = "SUNWBSS"; | |
12 | else if (segment == PT_SUNWSTACK) | |
8c7040e4 MK |
13 | diff -urNp -x '*.orig' elfutils-0.183.org/libelf/elf.h elfutils-0.183/libelf/elf.h |
14 | --- elfutils-0.183.org/libelf/elf.h 2021-02-07 18:54:39.000000000 +0100 | |
15 | +++ elfutils-0.183/libelf/elf.h 2021-05-05 21:02:25.910006052 +0200 | |
16 | @@ -719,6 +719,7 @@ typedef struct | |
8c7040e4 MK |
17 | #define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */ |
18 | #define PT_GNU_PROPERTY 0x6474e553 /* GNU property */ | |
6492a549 | 19 | #define PT_GNU_SFRAME 0x6474e554 /* SFrame segment. */ |
8c7040e4 MK |
20 | +#define PT_PAX_FLAGS 0x65041580 /* PaX flags */ |
21 | #define PT_LOSUNW 0x6ffffffa | |
22 | #define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */ | |
23 | #define PT_SUNWSTACK 0x6ffffffb /* Stack segment */ | |
24 | diff -urNp -x '*.orig' elfutils-0.183.org/src/elflint.c elfutils-0.183/src/elflint.c | |
25 | --- elfutils-0.183.org/src/elflint.c 2021-02-07 18:54:39.000000000 +0100 | |
26 | +++ elfutils-0.183/src/elflint.c 2021-05-05 21:02:25.909005552 +0200 | |
27 | @@ -4510,7 +4510,7 @@ only executables, shared objects, and co | |
28 | ||
29 | if (phdr->p_type >= PT_NUM && phdr->p_type != PT_GNU_EH_FRAME | |
30 | && phdr->p_type != PT_GNU_STACK && phdr->p_type != PT_GNU_RELRO | |
31 | - && phdr->p_type != PT_GNU_PROPERTY | |
32 | + && phdr->p_type != PT_GNU_PROPERTY && phdr->p_type != PT_PAX_FLAGS | |
33 | /* Check for a known machine-specific type. */ | |
34 | && ebl_segment_type_name (ebl, phdr->p_type, NULL, 0) == NULL) | |
35 | ERROR (_("\ |