| ... | @@ -1015,7 +1015,7 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi | ... | @@ -1015,7 +1015,7 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi |
| 1015 | } | 1015 | } |
| 1016 | } | 1016 | } |
| 1017 | | 1017 | |
| 1018 | try stubs_asm.appendSlice(".data\n"); | 1018 | try stubs_asm.appendSlice(".rodata\n"); |
| 1019 | | 1019 | |
| 1020 | // For some targets, the real `libc.so.6` will contain a weak reference to `_IO_stdin_used`, | 1020 | // For some targets, the real `libc.so.6` will contain a weak reference to `_IO_stdin_used`, |
| 1021 | // making the linker put the symbol in the dynamic symbol table. We likewise need to emit a | 1021 | // making the linker put the symbol in the dynamic symbol table. We likewise need to emit a |
| ... | @@ -1046,6 +1046,8 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi | ... | @@ -1046,6 +1046,8 @@ pub fn buildSharedObjects(comp: *Compilation, prog_node: std.Progress.Node) !voi |
| 1046 | }); | 1046 | }); |
| 1047 | } | 1047 | } |
| 1048 | | 1048 | |
| | 1049 | try stubs_asm.appendSlice(".data\n"); |
| | 1050 | |
| 1049 | const obj_inclusions_len = try inc_reader.readInt(u16, .little); | 1051 | const obj_inclusions_len = try inc_reader.readInt(u16, .little); |
| 1050 | | 1052 | |
| 1051 | sym_i = 0; | 1053 | sym_i = 0; |