From 73f47b6560d6e632284d722f114af28b418c73dd Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 6 Sep 2022 16:31:33 +0100 Subject: [PATCH] TODO: aarch64: morello: fix abs sym reloc TODO: squash into 3eb1c569eb TODO(l_addr): aarch64: morello: dynamic linking support --- sysdeps/aarch64/morello/dl-machine.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sysdeps/aarch64/morello/dl-machine.h b/sysdeps/aarch64/morello/dl-machine.h index 3d2c2bf033a..489ff538ddc 100644 --- a/sysdeps/aarch64/morello/dl-machine.h +++ b/sysdeps/aarch64/morello/dl-machine.h @@ -260,13 +260,8 @@ elf_machine_rela (struct link_map *map, struct r_scope_elem *scope[], perm_mask = CAP_PERM_MASK_RX; break; default: - { - const char *strtab; - strtab = (const void *) D_PTR (sym_map, l_info[DT_STRTAB]); - _dl_error_printf ("%s: symbol `%s' from `%s' has unknown type, when relocating `%s'.\n", - RTLD_PROGNAME, strtab + sym->st_name, sym_map->l_name, map->l_name); - perm_mask = CAP_PERM_MASK_R; - } + /* STT_NONE or unknown symbol: readonly. */ + perm_mask = CAP_PERM_MASK_R; } value = value + reloc->r_addend; value = __builtin_cheri_perms_and (value, perm_mask); -- 2.47.2