| ... | @@ -325,17 +325,17 @@ pub const File = struct { | ... | @@ -325,17 +325,17 @@ pub const File = struct { |
| 325 | /// local symbols, they cannot be mixed. So we must buffer all the global symbols and | 325 | /// local symbols, they cannot be mixed. So we must buffer all the global symbols and |
| 326 | /// write them at the end. These are only the local symbols. The length of this array | 326 | /// write them at the end. These are only the local symbols. The length of this array |
| 327 | /// is the value used for sh_info in the .symtab section. | 327 | /// is the value used for sh_info in the .symtab section. |
| 328 | local_symbols: std.ArrayListUnmanaged(elf.Elf64_Sym) = std.ArrayListUnmanaged(elf.Elf64_Sym){}, | 328 | local_symbols: std.ArrayListUnmanaged(elf.Elf64_Sym) = .{}, |
| 329 | global_symbols: std.ArrayListUnmanaged(elf.Elf64_Sym) = std.ArrayListUnmanaged(elf.Elf64_Sym){}, | 329 | global_symbols: std.ArrayListUnmanaged(elf.Elf64_Sym) = .{}, |
| 330 | | 330 | |
| 331 | local_symbol_free_list: std.ArrayListUnmanaged(u32) = std.ArrayListUnmanaged(u32){}, | 331 | local_symbol_free_list: std.ArrayListUnmanaged(u32) = .{}, |
| 332 | global_symbol_free_list: std.ArrayListUnmanaged(u32) = std.ArrayListUnmanaged(u32){}, | 332 | global_symbol_free_list: std.ArrayListUnmanaged(u32) = .{}, |
| 333 | offset_table_free_list: std.ArrayListUnmanaged(u32) = std.ArrayListUnmanaged(u32){}, | 333 | offset_table_free_list: std.ArrayListUnmanaged(u32) = .{}, |
| 334 | | 334 | |
| 335 | /// Same order as in the file. The value is the absolute vaddr value. | 335 | /// Same order as in the file. The value is the absolute vaddr value. |
| 336 | /// If the vaddr of the executable program header changes, the entire | 336 | /// If the vaddr of the executable program header changes, the entire |
| 337 | /// offset table needs to be rewritten. | 337 | /// offset table needs to be rewritten. |
| 338 | offset_table: std.ArrayListUnmanaged(u64) = std.ArrayListUnmanaged(u64){}, | 338 | offset_table: std.ArrayListUnmanaged(u64) = .{}, |
| 339 | | 339 | |
| 340 | phdr_table_dirty: bool = false, | 340 | phdr_table_dirty: bool = false, |
| 341 | shdr_table_dirty: bool = false, | 341 | shdr_table_dirty: bool = false, |