summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-07-19 16:20:32 +0200
committerMitya Selivanov <automainint@guattari.tech>2024-07-19 16:20:32 +0200
commit779364a0d5ef25fc20ee34d0ee4ffe8be3876fbc (patch)
tree458d7409700b84b6346ee419818856f76dbb7f28
parent9208e3a07ebf138981877240eb63867942d52e42 (diff)
downloadbxgen-779364a0d5ef25fc20ee34d0ee4ffe8be3876fbc.zip
Cleanup
-rwxr-xr-xbxgen.c2
1 files changed, 1 insertions, 1 deletions
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");