NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



The following reply was made to PR toolchain/59652; it has been noted by GNATS.

From: "Nick Hudson" <skrll%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/59652 CVS commit: src/libexec/ld.elf_so
Date: Sat, 17 Jan 2026 10:47:45 +0000

 Module Name:	src
 Committed By:	skrll
 Date:		Sat Jan 17 10:47:45 UTC 2026
 
 Modified Files:
 	src/libexec/ld.elf_so: tls.c
 
 Log Message:
 PR toolchain/59652 DNS utilities core dump in -current
 
 Fix the alignment of TLS initialised data for __HAVE_TLS_VARIANT_I
 platforms by registering the largest alignment required and allocating
 memory accordingly. Additionally calculate correct offsets for each
 object's data relative to the end of the struct tls_tcb placed at the
 beginning of the TCB.
 
 This makes the tests/libexec/ld.elf_so:t_tls_alignment pass.
 
 I also tested it against a program that attempts to dlopen a DSO that
 (erroneously) attempts to use tls_model("initial-exec") and it correctly
 failed with
 
     Use of initialized Thread Local Storage with model initial-exec and dlopen is not supported
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.27 -r1.28 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.
 


Home | Main Index | Thread Index | Old Index