NetBSD Problem Report #58455

From www@netbsd.org  Mon Jul 22 21:58:05 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 828B21A9239
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Jul 2024 21:58:05 +0000 (UTC)
Message-Id: <20240722215804.717241A923A@mollari.NetBSD.org>
Date: Mon, 22 Jul 2024 21:58:04 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: Missing references for processor-specific ELF relocation semantics
X-Send-Pr-Version: www-1.0

>Number:         58455
>Category:       lib
>Synopsis:       Missing references for processor-specific ELF relocation semantics
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 22 22:00:00 +0000 2024
>Last-Modified:  Tue Aug 06 20:30:02 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetRTLD Foundation.pdf
>Environment:
>Description:
Each architecture has its own little language of relocation semantics in the ELF ABI.

ld.elf_so tries to faithfully implement these little languages for each architecture.  But sometimes it has bugs, or the language gets extended.

We need to record (and archive) references to the processor supplements to the ELF ABI which define the relocation semantics.
>How-To-Repeat:
code inspection
>Fix:
Yes, please!

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58455 CVS commit: src/libexec/ld.elf_so/arch
Date: Mon, 22 Jul 2024 23:10:35 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Mon Jul 22 23:10:35 UTC 2024

 Modified Files:
 	src/libexec/ld.elf_so/arch/aarch64: mdreloc.c
 	src/libexec/ld.elf_so/arch/arm: mdreloc.c

 Log Message:
 ld.elf_so: Cite reference for Arm ELF relocations.

 PR lib/58455: Missing references for processor-specific ELF
 relocation semantics


 To generate a diff of this commit:
 cvs rdiff -u -r1.18 -r1.19 src/libexec/ld.elf_so/arch/aarch64/mdreloc.c
 cvs rdiff -u -r1.46 -r1.47 src/libexec/ld.elf_so/arch/arm/mdreloc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58455 CVS commit: src/libexec/ld.elf_so/arch/hppa
Date: Mon, 22 Jul 2024 23:10:46 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Mon Jul 22 23:10:46 UTC 2024

 Modified Files:
 	src/libexec/ld.elf_so/arch/hppa: hppa_reloc.c

 Log Message:
 ld.elf_so: Cite reference for HP PA-RISC ELF relocations.

 PR lib/58455: Missing references for processor-specific ELF
 relocation semantics


 To generate a diff of this commit:
 cvs rdiff -u -r1.50 -r1.51 src/libexec/ld.elf_so/arch/hppa/hppa_reloc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58455 CVS commit: src/libexec/ld.elf_so/arch/riscv
Date: Mon, 22 Jul 2024 23:11:05 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Mon Jul 22 23:11:05 UTC 2024

 Modified Files:
 	src/libexec/ld.elf_so/arch/riscv: mdreloc.c

 Log Message:
 ld.elf_so: Cite reference for RISC-V ELF relocations.

 PR lib/58455: Missing references for processor-specific ELF
 relocation semantics


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 src/libexec/ld.elf_so/arch/riscv/mdreloc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Valery Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58455 CVS commit: src/libexec/ld.elf_so/arch/sh3
Date: Tue, 23 Jul 2024 09:27:01 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Tue Jul 23 09:27:00 UTC 2024

 Modified Files:
 	src/libexec/ld.elf_so/arch/sh3: mdreloc.c

 Log Message:
 ld.elf_so: Cite reference for SuperH ELF relocations

 PR lib/58455: Missing references for processor-specific ELF
 relocation semantics


 To generate a diff of this commit:
 cvs rdiff -u -r1.36 -r1.37 src/libexec/ld.elf_so/arch/sh3/mdreloc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Valery Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58455 CVS commit: src/libexec/ld.elf_so/arch
Date: Tue, 23 Jul 2024 09:55:20 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Tue Jul 23 09:55:19 UTC 2024

 Modified Files:
 	src/libexec/ld.elf_so/arch/sparc: mdreloc.c
 	src/libexec/ld.elf_so/arch/sparc64: mdreloc.c

 Log Message:
 ld.elf_so: Cite reference for SPARC ELF relocations

 PR lib/58455: Missing references for processor-specific ELF
 relocation semantics


 To generate a diff of this commit:
 cvs rdiff -u -r1.58 -r1.59 src/libexec/ld.elf_so/arch/sparc/mdreloc.c
 cvs rdiff -u -r1.70 -r1.71 src/libexec/ld.elf_so/arch/sparc64/mdreloc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Valery Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58455 CVS commit: src/libexec/ld.elf_so/arch/powerpc
Date: Tue, 23 Jul 2024 10:17:33 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Tue Jul 23 10:17:32 UTC 2024

 Modified Files:
 	src/libexec/ld.elf_so/arch/powerpc: ppc_reloc.c

 Log Message:
 ld.elf_so: Cite reference for PowerPC ELF relocations

 PR lib/58455: Missing references for processor-specific ELF
 relocation semantics


 To generate a diff of this commit:
 cvs rdiff -u -r1.63 -r1.64 src/libexec/ld.elf_so/arch/powerpc/ppc_reloc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58455 CVS commit: src/libexec/ld.elf_so/arch/mips
Date: Tue, 6 Aug 2024 20:26:45 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Tue Aug  6 20:26:45 UTC 2024

 Modified Files:
 	src/libexec/ld.elf_so/arch/mips: mips_reloc.c

 Log Message:
 ld.elf_so(1): Cite reference for MIPS ELF relocations.

 This doesn't cover everything -- it's missing the thread-local
 storage relocations -- but it's a start.

 PR lib/58455: Missing references for processor-specific ELF
 relocation semantics


 To generate a diff of this commit:
 cvs rdiff -u -r1.76 -r1.77 src/libexec/ld.elf_so/arch/mips/mips_reloc.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.