PR/60469 CVS commit: src/libexec/ld.elf_so

"Taylor R Campbell" <[email protected]> Wed, 22 Jul 2026 15:25:04 +0000 (UTC)
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
The following reply was made to PR bin/60469; it has been noted by GNATS.

From: "Taylor R Campbell" <[email protected]>
To: [email protected]
Cc: 
Subject: PR/60469 CVS commit: src/libexec/ld.elf_so
Date: Wed, 22 Jul 2026 15:23:33 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Wed Jul 22 15:23:33 UTC 2026
 
 Modified Files:
 	src/libexec/ld.elf_so: tls.c
 
 Log Message:
 ld.elf_so: Prune some dead TLS variant branches.
 
 __lwp_settcb / __lwp_gettcb_fast are used only with TLS variant I,
 never with TLS variant II.
 
 So say `#ifdef __HAVE_TLS_VARIANT_II' instead of `#ifndef
 __HAVE_TLS_VARIANT_I' to make it clearer, and prune all the
 __HAVE___LWP_SETTCB / __HAVE___LWP_GETTCB_FAST branches under it
 because they're unreachable.
 
 No functional change intended: all the deleted code should be dead.
 
 PR bin/60469: bin/60469: assertion "ALIGNED_P(q, obj->tlsalign)"
 failed: file "/usr/src/libexec/ld.elf_so/tls.c", line 333
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.33 -r1.34 src/libexec/ld.elf_so/tls.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.