]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
TODO: aarch64: morello: fix abs sym reloc
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 6 Sep 2022 15:31:33 +0000 (16:31 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 12 Oct 2022 13:22:03 +0000 (14:22 +0100)
TODO: squash into
3eb1c569eb TODO(l_addr): aarch64: morello: dynamic linking support

sysdeps/aarch64/morello/dl-machine.h

index 3d2c2bf033a48701711c7bef7bfcbd37979d056d..489ff538ddc229592b8621884bced19f8d3aacc5 100644 (file)
@@ -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);