zld: apply offset for DICE in archive

This commit is contained in:
Jakub Konka 2021-03-19 23:36:12 +01:00
parent 867ae506e3
commit f6ba810f27

View File

@ -164,6 +164,7 @@ pub fn readLoadCommands(self: *Object, reader: anytype, offset: ReadOffset) !voi
},
macho.LC_DATA_IN_CODE => {
self.data_in_code_cmd_index = i;
cmd.LinkeditData.dataoff += offset_mod;
},
else => {
log.debug("Unknown load command detected: 0x{x}.", .{cmd.cmd()});