]> git.pld-linux.org Git - packages/elfutils.git/blob - elfutils-paxflags.patch
disable tests which require glibc debuginfo
[packages/elfutils.git] / elfutils-paxflags.patch
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
5         res = "GNU_RELRO";
6        else if (segment == PT_GNU_PROPERTY)
7         res = "GNU_PROPERTY";
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)
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
17  #define PT_GNU_STACK   0x6474e551      /* Indicates stack executability */
18  #define PT_GNU_RELRO   0x6474e552      /* Read-only after relocation */
19  #define PT_GNU_PROPERTY        0x6474e553      /* GNU property */
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 (_("\
This page took 0.08159 seconds and 3 git commands to generate.