From 42e0850d78e63fcc602dd0e167ac90dfb3cfec02 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Sun, 27 Aug 2023 07:31:29 +0200 Subject: macho: save indexes to all sections of interest --- src/link/MachO.zig | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/link/MachO.zig') diff --git a/src/link/MachO.zig b/src/link/MachO.zig index ac07e5c687..de723639f1 100644 --- a/src/link/MachO.zig +++ b/src/link/MachO.zig @@ -33,14 +33,19 @@ data_segment_cmd_index: ?u8 = null, linkedit_segment_cmd_index: ?u8 = null, text_section_index: ?u8 = null, -stubs_section_index: ?u8 = null, -stub_helper_section_index: ?u8 = null, -got_section_index: ?u8 = null, data_const_section_index: ?u8 = null, -la_symbol_ptr_section_index: ?u8 = null, data_section_index: ?u8 = null, +bss_section_index: ?u8 = null, thread_vars_section_index: ?u8 = null, thread_data_section_index: ?u8 = null, +thread_bss_section_index: ?u8 = null, +eh_frame_section_index: ?u8 = null, +unwind_info_section_index: ?u8 = null, +stubs_section_index: ?u8 = null, +stub_helper_section_index: ?u8 = null, +got_section_index: ?u8 = null, +la_symbol_ptr_section_index: ?u8 = null, +tlv_ptr_section_index: ?u8 = null, locals: std.ArrayListUnmanaged(macho.nlist_64) = .{}, globals: std.ArrayListUnmanaged(SymbolWithLoc) = .{}, -- cgit v1.2.3