From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id A4A8E3860770; Wed, 12 Oct 2022 14:16:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4A8E3860770 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665584185; bh=sk+FVqt9ZiJR59843ldpOgaZ7FWG8EviGH0acMI/Z2c=; h=From:To:Subject:Date:From; b=BEYOJGIMoK0zOzZjjSFHGAdsJkYVQswqwrRiD8KlApDjrBqG+a5xdTH+P4h8Xip9e 1oNfh76hWpQB0az895/lqH1UnRDk6avgXTvC1OtvDEh3e7VgEZAFUuMgqKTDOcSE3J Ubx4JDx1pL7AnA7iQOee9Q2l7VWVfnaX/wdSJPN8= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] TODO: aarch64: morello: fix abs sym reloc X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: bfc66c9896bd903f0295dee436110895de28a29e X-Git-Newrev: 73f47b6560d6e632284d722f114af28b418c73dd Message-Id: <20221012141625.A4A8E3860770@sourceware.org> Date: Wed, 12 Oct 2022 14:16:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=73f47b6560d6e632284d722f114af28b418c73dd commit 73f47b6560d6e632284d722f114af28b418c73dd Author: Szabolcs Nagy Date: Tue Sep 6 16:31:33 2022 +0100 TODO: aarch64: morello: fix abs sym reloc TODO: squash into 3eb1c569eb TODO(l_addr): aarch64: morello: dynamic linking support Diff: --- 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 3d2c2bf033..489ff538dd 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);