From 779364a0d5ef25fc20ee34d0ee4ffe8be3876fbc Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 19 Jul 2024 16:20:32 +0200 Subject: Cleanup --- bxgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bxgen.c b/bxgen.c index 5644561..7bfd9dc 100755 --- a/bxgen.c +++ b/bxgen.c @@ -2211,7 +2211,7 @@ void unit_write(Pool *pool, i64 unit, u16 target, i64 io_out, void *io_user_data if (section.type == SEC_SYMTAB) for (i64 sym_index = 0; sym_index < section.num_entries; ++sym_index) { Symbol_Entry sym = elf_symbol(buf, section.data, strtab, (u16) sym_index); - + if (sym.name.size == 6 && bx_mem_eq(elf_name_from_offset(buf, sym.name), "printf", 6)) { if (sym_printf.value.offset != 0) BX_LAX(0, "Symbol redefinition"); -- cgit v1.2.3