[01/12] elf.h: Add PT_GNU_PROPERTY

Message ID 20200430173702.GW29015@arm.com
State Superseded
Headers
Series aarch64: branch protection support |

Commit Message

Szabolcs Nagy April 30, 2020, 5:37 p.m. UTC
  This program header type is already used in binaries on x86 and
aarch64 targets.
---
 elf/elf.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Adhemerval Zanella Netto May 7, 2020, 2:49 p.m. UTC | #1
On 30/04/2020 14:37, Szabolcs Nagy wrote:
> This program header type is already used in binaries on x86 and
> aarch64 targets.

LGTM, its value matches binutils (0a59decbb81676ac30deede1bb6b6e241cd75502).

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>


> ---
>  elf/elf.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/elf/elf.h b/elf/elf.h
> index 51e9968405..5b5ce37d9e 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -721,6 +721,7 @@ typedef struct
>  #define PT_GNU_EH_FRAME	0x6474e550	/* GCC .eh_frame_hdr segment */
>  #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
>  #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
> +#define PT_GNU_PROPERTY	0x6474e553	/* GNU property */
>  #define PT_LOSUNW	0x6ffffffa
>  #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
>  #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */
>
  

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 51e9968405..5b5ce37d9e 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -721,6 +721,7 @@  typedef struct
 #define PT_GNU_EH_FRAME	0x6474e550	/* GCC .eh_frame_hdr segment */
 #define PT_GNU_STACK	0x6474e551	/* Indicates stack executability */
 #define PT_GNU_RELRO	0x6474e552	/* Read-only after relocation */
+#define PT_GNU_PROPERTY	0x6474e553	/* GNU property */
 #define PT_LOSUNW	0x6ffffffa
 #define PT_SUNWBSS	0x6ffffffa	/* Sun Specific segment */
 #define PT_SUNWSTACK	0x6ffffffb	/* Stack segment */