options/elf: Add some more missing defines
#include <bits/inline-definition.h>
#include <abi-bits/auxv.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// TODO: Convert the enums to #defines so that they work with #ifdef.
#define ELFCLASS64 2
@@ -199,13 +203,17 @@ __MLIBC_INLINE_DEFINITION unsigned char ELF32_ST_INFO(unsigned char bind, unsign
enum {
STB_GLOBAL = 1,
STB_WEAK = 2,
- STB_GNU_UNIQUE = 10
+ STB_GNU_UNIQUE = 10,
+ STB_LOPROC = 13,
+ STB_HIPROC = 15
};
enum {
STT_OBJECT = 1,
STT_FUNC = 2,
- STT_TLS = 6
+ STT_TLS = 6,
+ STT_LOPROC = 13,
+ STT_HIPROC = 15
};
enum {
@@ -365,6 +373,7 @@ enum {
// Valid values for note segment descriptor files for core files
#define NT_PRSTATUS 1
#define NT_FPREGSET 2
+#define NT_PRPSINFO 3
// Build ID bits as generated by ld --build-id
#define NT_GNU_BUILD_ID 3
@@ -527,6 +536,7 @@ typedef struct {
#define ELFOSABI_HPUX 1
#define ELFOSABI_NETBSD 2
#define ELFOSABI_GNU 3
+#define ELFOSABI_LINUX ELFOSABI_GNU
#define ELFOSABI_SOLARIS 6
#define ELFOSABI_AIX 7
#define ELFOSABI_IRIX 8
@@ -535,4 +545,10 @@ typedef struct {
#define EI_ABIVERSION 8
+#define ELF_NOTE_GNU "GNU"
+
+#ifdef __cplusplus
+}
+#endif
+
#endif // _ELF_H
