This breaks building glibc with linker errors for some configurations in 
build-many-glibcs.py (loongarch64-linux-gnuf64 loongarch64-linux-gnusf 
m68k-linux-gnu-coldfire m68k-linux-gnu-coldfire-soft or1k-linux-gnu).

Representative linker errors are as follows.  Of course assertion failures 
indicate a linker bug as well, but if there really are mixtures of TLS and 
non-TLS references to the same symbol as suggested by the or1k-linux-gnu 
errors, that suggests something wrong with this patch.

loongarch64-linux-gnuf64 and loongarch64-linux-gnusf:

/notnfs/josmyers/glibc-manual/install/compilers/loongarch64-linux-gnuf64/lib/gcc/loongarch64-glibc-linux-gnuf64/16.0.0/../../../../loongarch64-glibc-linux-gnuf64/bin/ld:
 
BFD (GNU Binutils) 2.45.50.20250912 assertion fail 
/notnfs/josmyers/glibc-manual/src/binutils/bfd/elfnn-loongarch.c:4404

m68k-linux-gnu-coldfire and m68k-linux-gnu-coldfire-soft:
/notnfs/josmyers/glibc-manual/build/compilers/m68k-linux-gnu-coldfire/glibc/m68k-linux-gnu-coldfire/libc.a(setlocale.o):
 
in function `_nl_locale_subfreeres':
/notnfs/josmyers/glibc-manual/src/glibc/locale/categories.def:41:(.text+0x950): 
relocation truncated to fit: R_68K_TLS_LE16 against undefined symbol 
`_nl_current_LC_COLLATE'
[...]
make[3]: *** [../Rules:325: 
/notnfs/josmyers/glibc-manual/build/compilers/m68k-linux-gnu-coldfire/glibc/m68k-linux-gnu-coldfire/support/test-run-command]
 
Error 1

or1k-linux-gnu:
/notnfs/josmyers/glibc-manual/install/compilers/or1k-linux-gnu/lib/gcc/or1k-glibc-linux-gnu/16.0.0/../../../../or1k-glibc-linux-gnu/bin/ld:
 
__libc_tsd_CTYPE_B: TLS reference in 
/notnfs/josmyers/glibc-manual/build/compilers/or1k-linux-gnu/glibc/or1k-linux-gnu-soft/libc.a(localealias.o)
 
mismatches non-TLS reference in 
/notnfs/josmyers/glibc-manual/build/compilers/or1k-linux-gnu/glibc/or1k-linux-gnu-soft/libc.a(lc-ctype.o)
/notnfs/josmyers/glibc-manual/install/compilers/or1k-linux-gnu/lib/gcc/or1k-glibc-linux-gnu/16.0.0/../../../../or1k-glibc-linux-gnu/bin/ld:
 
/notnfs/josmyers/glibc-manual/build/compilers/or1k-linux-gnu/glibc/or1k-linux-gnu-soft/libc.a:
 
error adding symbols: bad value
collect2: error: ld returned 1 exit status
make[3]: *** [../Rules:325: 
/notnfs/josmyers/glibc-manual/build/compilers/or1k-linux-gnu/glibc/or1k-linux-gnu-soft/support/test-run-command]
 
Error 1

-- 
Joseph S. Myers
[email protected]

Reply via email to