| ... | @@ -383,11 +383,10 @@ pub fn parseSymbols(self: *Object) !void { | ... | @@ -383,11 +383,10 @@ pub fn parseSymbols(self: *Object) !void { |
| 383 | } | 383 | } |
| 384 | | 384 | |
| 385 | if (sym.n_value != 0) { | 385 | if (sym.n_value != 0) { |
| 386 | log.err("common symbol {s} in {s}", .{ sym_name, self.name.? }); | 386 | const comm_size = sym.n_value; |
| | 387 | const comm_align = (sym.n_desc >> 8) & 0x0f; |
| | 388 | log.err("Common symbol {s} in {s}: size 0x{x}, align 0x{x}", .{ sym_name, self.name.?, comm_size, comm_align }); |
| 387 | return error.UnhandledSymbolType; | 389 | return error.UnhandledSymbolType; |
| 388 | // const comm_size = sym.n_value; | | |
| 389 | // const comm_align = (sym.n_desc >> 8) & 0x0f; | | |
| 390 | // log.warn("Common symbol: size 0x{x}, align 0x{x}", .{ comm_size, comm_align }); | | |
| 391 | } | 390 | } |
| 392 | | 391 | |
| 393 | const undef = try self.allocator.create(Symbol.Unresolved); | 392 | const undef = try self.allocator.create(Symbol.Unresolved); |