From fb071309905c2911bd696c2cd0eafdae02d1e80b Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 1 Oct 2024 18:20:10 -0400 Subject: dont require phdr to link --- mld/symtab.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mld/symtab.c') diff --git a/mld/symtab.c b/mld/symtab.c index 9417673..314a1c3 100644 --- a/mld/symtab.c +++ b/mld/symtab.c @@ -56,6 +56,10 @@ int symtab_get(struct symbol_table *symtab, Elf32_Sym **res, const char *name, if (strcmp(name, symname) != 0) continue; + // ignore absolute symbols + if (B16(sym->st_shndx) == SHN_ABS) + continue; + // only allow retrevial of local variables from the // same object if (sym->st_info >> 4 != STB_GLOBAL && symtab->map != NULL && -- cgit v1.2.3-freya