Add SHT_X86_64_UNWIND to elf.h (bug 20079)

Message ID alpine.DEB.2.20.1803132315420.22082@digraph.polyomino.org.uk
State New
Headers show
Series
  • Add SHT_X86_64_UNWIND to elf.h (bug 20079)
Related show

Commit Message

Joseph Myers March 13, 2018, 11:16 p.m.
As requested in bug 20079, this patch adds SHT_X86_64_UNWIND (a
standard value from the x86_64 ABI) to elf.h.

Tested for x86_64.

2018-03-13  Joseph Myers  <joseph@codesourcery.com>

	[BZ #20079]
	* elf/elf.h (SHT_X86_64_UNWIND): New macro.


-- 
Joseph S. Myers
joseph@codesourcery.com

Comments

Joseph Myers March 19, 2018, 5:49 p.m. | #1
Ping.  This patch 
<https://sourceware.org/ml/libc-alpha/2018-03/msg00328.html> is pending 
review.

-- 
Joseph S. Myers
joseph@codesourcery.com
H.J. Lu March 19, 2018, 5:58 p.m. | #2
On Tue, Mar 13, 2018 at 4:16 PM, Joseph Myers <joseph@codesourcery.com> wrote:
> As requested in bug 20079, this patch adds SHT_X86_64_UNWIND (a

> standard value from the x86_64 ABI) to elf.h.

>

> Tested for x86_64.

>

> 2018-03-13  Joseph Myers  <joseph@codesourcery.com>

>

>         [BZ #20079]

>         * elf/elf.h (SHT_X86_64_UNWIND): New macro.

>

> diff --git a/elf/elf.h b/elf/elf.h

> index 4f43577..677fccb 100644

> --- a/elf/elf.h

> +++ b/elf/elf.h

> @@ -3367,6 +3367,9 @@ enum

>                                            relaxable.  */

>  #define R_X86_64_NUM           43

>

> +/* x86-64 sh_type values.  */

> +#define SHT_X86_64_UNWIND      0x70000001 /* Unwind information.  */

> +

>

>  /* AM33 relocations.  */

>  #define R_MN10300_NONE         0       /* No reloc.  */

>


LGTM.

Thanks.

-- 
H.J.

Patch

diff --git a/elf/elf.h b/elf/elf.h
index 4f43577..677fccb 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -3367,6 +3367,9 @@  enum
 					   relaxable.  */
 #define R_X86_64_NUM		43
 
+/* x86-64 sh_type values.  */
+#define SHT_X86_64_UNWIND	0x70000001 /* Unwind information.  */
+
 
 /* AM33 relocations.  */
 #define R_MN10300_NONE		0	/* No reloc.  */