From patchwork Sun Nov 20 11:41:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 17597 Received: (qmail 39748 invoked by alias); 20 Nov 2016 11:41:45 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 39699 invoked by uid 89); 20 Nov 2016 11:41:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=Contains, siginfo_t, transaction X-HELO: smtp.gentoo.org From: Mike Frysinger To: libc-alpha@sourceware.org Subject: [PATCH] elf.h: small note related updates Date: Sun, 20 Nov 2016 06:41:25 -0500 Message-Id: <20161120114125.7553-1-vapier@gentoo.org> Import a few defines that already exist in binutils. --- elf/elf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index 9e59b3275917..d1db8d18d4ab 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -748,11 +748,14 @@ typedef struct #define NT_GWINDOWS 7 /* Contains copy of gwindows struct */ #define NT_ASRS 8 /* Contains copy of asrset struct */ #define NT_PSTATUS 10 /* Contains copy of pstatus struct */ +#define NT_FPREGS 12 /* Contains copy of fpregset struct */ #define NT_PSINFO 13 /* Contains copy of psinfo struct */ #define NT_PRCRED 14 /* Contains copy of prcred struct */ #define NT_UTSNAME 15 /* Contains copy of utsname struct */ #define NT_LWPSTATUS 16 /* Contains copy of lwpstatus struct */ #define NT_LWPSINFO 17 /* Contains copy of lwpinfo struct */ +#define NT_WIN32PSTATUS 18 /* Contains copy of win32_pstatus + struct */ #define NT_PRFPXREG 20 /* Contains copy of fprxregset struct */ #define NT_SIGINFO 0x53494749 /* Contains copy of siginfo_t, size might increase */ @@ -774,6 +777,10 @@ typedef struct #define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */ #define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */ #define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */ +#define NT_S390_VXRS_LOW 0x309 /* S390 vector registers 0-15 upper half */ + /* note name must be "LINUX". */ +#define NT_S390_VXRS_HIGH 0x30a /* S390 vector registers 16-31 */ + /* note name must be "LINUX". */ #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ #define NT_ARM_TLS 0x401 /* ARM TLS register */ #define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */ @@ -783,6 +790,7 @@ typedef struct /* Legal values for the note segment descriptor types for object files. */ #define NT_VERSION 1 /* Contains a version string. */ +#define NT_ARCH 2 /* Contains an architecture string. */ /* Dynamic section entry. */ @@ -1219,6 +1227,9 @@ typedef struct #define ELF_NOTE_OS_GNU 1 #define ELF_NOTE_OS_SOLARIS2 2 #define ELF_NOTE_OS_FREEBSD 3 +#define ELF_NOTE_OS_NETBSD 4 +#define ELF_NOTE_OS_SYLLABLE 5 +#define ELF_NOTE_OS_NACL 6 /* Synthetic hwcap information. The descriptor begins with two words: word 0: number of entries