| ... | ... | @@ -84,7 +84,10 @@ pub const DT_ENCODING = 32; |
| 84 | 84 | pub const DT_PREINIT_ARRAY = 32; |
| 85 | 85 | pub const DT_PREINIT_ARRAYSZ = 33; |
| 86 | 86 | pub const DT_SYMTAB_SHNDX = 34; |
| 87 | | pub const DT_NUM = 35; |
| 87 | pub const DT_RELRSZ = 35; |
| 88 | pub const DT_RELR = 36; |
| 89 | pub const DT_RELRENT = 37; |
| 90 | pub const DT_NUM = 38; |
| 88 | 91 | pub const DT_LOOS = 0x6000000d; |
| 89 | 92 | pub const DT_HIOS = 0x6ffff000; |
| 90 | 93 | pub const DT_LOPROC = 0x70000000; |
| ... | ... | @@ -859,6 +862,8 @@ pub const Elf64_Rela = extern struct { |
| 859 | 862 | return @truncate(self.r_info); |
| 860 | 863 | } |
| 861 | 864 | }; |
| 865 | pub const Elf32_Relr = Elf32_Word; |
| 866 | pub const Elf64_Relr = Elf64_Xword; |
| 862 | 867 | pub const Elf32_Dyn = extern struct { |
| 863 | 868 | d_tag: Elf32_Sword, |
| 864 | 869 | d_val: Elf32_Addr, |
| ... | ... | @@ -1052,6 +1057,11 @@ pub const Rela = switch (@sizeOf(usize)) { |
| 1052 | 1057 | 8 => Elf64_Rela, |
| 1053 | 1058 | else => @compileError("expected pointer size of 32 or 64"), |
| 1054 | 1059 | }; |
| 1060 | pub const Relr = switch (@sizeOf(usize)) { |
| 1061 | 4 => Elf32_Relr, |
| 1062 | 8 => Elf64_Relr, |
| 1063 | else => @compileError("expected pointer size of 32 or 64"), |
| 1064 | }; |
| 1055 | 1065 | pub const Shdr = switch (@sizeOf(usize)) { |
| 1056 | 1066 | 4 => Elf32_Shdr, |
| 1057 | 1067 | 8 => Elf64_Shdr, |