From 85471efb4c740bb775c9ebdb10f775620c979598 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sun, 22 Sep 2024 16:02:42 -0400 Subject: mld done --- masm/symtab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'masm/symtab.c') diff --git a/masm/symtab.c b/masm/symtab.c index c6f9aac..652bd42 100644 --- a/masm/symtab.c +++ b/masm/symtab.c @@ -18,7 +18,7 @@ int symtab_init(struct symbol_table *symtab) symtab->sections = malloc(sizeof(ssize_t) * SYMTBL_INIT_LEN); if (symtab->symbols == NULL || symtab->sections == NULL) { - ERROR("cannot alloc"); + PERROR("cannot alloc"); return M_ERROR; } @@ -44,7 +44,7 @@ int symtab_push(struct symbol_table *symtab, Elf32_Sym sym, ssize_t sec_idx) symtab->sections = realloc(symtab->sections, sizeof(ssize_t) * symtab->size); if (symtab->symbols == NULL || symtab->sections == NULL) { - ERROR("cannot realloc"); + PERROR("cannot realloc"); return M_ERROR; } } -- cgit v1.2.3-freya