options/elf: Add Elf32_Sym
@@ -23,6 +23,7 @@ typedef uint32_t Elf64_Word;
typedef int32_t Elf64_Sword;
typedef uint64_t Elf64_Xword;
typedef int64_t Elf64_Sxword;
+typedef uint16_t Elf64_Section;
typedef uint32_t Elf32_Addr;
typedef uint32_t Elf32_Off;
@@ -31,6 +32,7 @@ typedef uint32_t Elf32_Word;
typedef int32_t Elf32_Sword;
typedef uint64_t Elf32_Xword;
typedef int64_t Elf32_Sxword;
+typedef uint16_t Elf32_Section;
#define EI_NIDENT (16)
@@ -81,6 +83,15 @@ enum {
SHN_ABS = 0xFFF1
};
+typedef struct {
+ Elf32_Word st_name;
+ Elf32_Addr st_value;
+ Elf32_Word st_size;
+ unsigned char st_info;
+ unsigned char st_other;
+ Elf32_Section st_shndx;
+} Elf32_Sym;
+
typedef struct {
Elf64_Word st_name;
unsigned char st_info;
