| ... | @@ -5472,11 +5472,6 @@ pub fn getOrPutGlobal(self: *Elf, name: []const u8) !GetOrPutGlobalResult { | ... | @@ -5472,11 +5472,6 @@ pub fn getOrPutGlobal(self: *Elf, name: []const u8) !GetOrPutGlobalResult { |
| 5472 | }; | 5472 | }; |
| 5473 | } | 5473 | } |
| 5474 | | 5474 | |
| 5475 | pub fn globalByName(self: *Elf, name: []const u8) ?Symbol.Index { | | |
| 5476 | const name_off = self.strings.getOffset(name) orelse return null; | | |
| 5477 | return self.resolver.get(name_off); | | |
| 5478 | } | | |
| 5479 | | | |
| 5480 | pub fn getGlobalSymbol(self: *Elf, name: []const u8, lib_name: ?[]const u8) !u32 { | 5475 | pub fn getGlobalSymbol(self: *Elf, name: []const u8, lib_name: ?[]const u8) !u32 { |
| 5481 | return self.zigObjectPtr().?.getGlobalSymbol(self, name, lib_name); | 5476 | return self.zigObjectPtr().?.getGlobalSymbol(self, name, lib_name); |
| 5482 | } | 5477 | } |