On 04/18/17 20:34, Benjamin Baier wrote:
> Add openbsd elf program header types to hte(1).
> Patch already accepted upstream.
> 

Committed, thanks !

> Mon Apr 17 14:30:33 CEST 2017
> /usr/ports/editors/ht
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/editors/ht/Makefile,v
> retrieving revision 1.25
> diff -u -p -r1.25 Makefile
> --- Makefile  10 Apr 2017 11:45:27 -0000      1.25
> +++ Makefile  17 Apr 2017 12:29:32 -0000
> @@ -3,6 +3,7 @@
>  COMMENT =            file editor/viewer/analyzer for executables
>  
>  DISTNAME =           ht-2.1.0
> +REVISION=            0
>  CATEGORIES =         editors
>  
>  HOMEPAGE =           http://hte.sourceforge.net/
> Index: patches/patch-elfstruc_h
> ===================================================================
> RCS file: patches/patch-elfstruc_h
> diff -N patches/patch-elfstruc_h
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-elfstruc_h  17 Apr 2017 12:17:54 -0000
> @@ -0,0 +1,13 @@
> +$OpenBSD$
> +--- elfstruc.h.orig  Sun Sep 14 17:55:26 2014
> ++++ elfstruc.h       Mon Apr 17 14:17:39 2017
> +@@ -374,6 +374,9 @@ struct ELF_SECTION_HEADER64 {
> + #define ELF_PT_GNU_STACK    0x6474e551 /* Indicates stack executability */
> + #define ELF_PT_GNU_RELRO    0x6474e552 /* Read-only after relocation    */ 
> + #define ELF_PT_PAX_FLAGS    0x65041580 /* Indicates PaX flag markings */
> ++#define ELF_PT_OPENBSD_RANDOMIZE    0x65a3dbe6 /* Fill with random data. */
> ++#define ELF_PT_OPENBSD_WXNEEDED     0x65a3dbe7 /* Program does W^X 
> violations */
> ++#define ELF_PT_OPENBSD_BOOTDATA     0x65a41be6 /* Section for boot 
> arguments */
> + 
> + struct ELF_PROGRAM_HEADER32 {
> +     elf32_word p_type;
> Index: patches/patch-htelfphs_cc
> ===================================================================
> RCS file: patches/patch-htelfphs_cc
> diff -N patches/patch-htelfphs_cc
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-htelfphs_cc 17 Apr 2017 12:18:21 -0000
> @@ -0,0 +1,13 @@
> +$OpenBSD$
> +--- htelfphs.cc.orig Sun Sep 14 17:55:26 2014
> ++++ htelfphs.cc      Mon Apr 17 14:17:39 2017
> +@@ -67,6 +67,9 @@ static int_hash elf_ph_type[] =
> +     {ELF_PT_GNU_STACK,      "gnu stack"},
> +     {ELF_PT_GNU_RELRO,      "gnu relro"},
> +     {ELF_PT_PAX_FLAGS,      "pax flags"},
> ++    {ELF_PT_OPENBSD_RANDOMIZE,      "openbsd randomize"},
> ++    {ELF_PT_OPENBSD_WXNEEDED,       "openbsd wxneeded"},
> ++    {ELF_PT_OPENBSD_BOOTDATA,       "openbsd bootdata"},
> +     {0, 0}
> + };
> + 
> 

Reply via email to