[PATCH] MIPS/BFD: For n64 hold the number of internal relocs in `->reloc_count'

Joseph Myers joseph@codesourcery.com
Mon May 22 17:51:00 GMT 2017


This change breaks testing glibc for MIPS n64.  Specifically, linking the 
stdlib/test-canon2 test fails with "collect2: fatal error: ld terminated 
with signal 11 [Segmentation fault], core dumped", when using this 
binutils commit, but all tests link OK when using the previous binutils 
commit.

This is testing with GCC mainline, and glibc mainline with Zack's patch 
<https://sourceware.org/ml/libc-alpha/2017-05/msg00648.html> for 
subsequent build breakage applied, but it's quite likely it would appear 
with other GCC versions when using mainline binutils.  It first showed up 
with my glibc bot 
<https://sourceware.org/ml/libc-testresults/2017-q2/msg00208.html>.

Linking that test produces (expected) warnings as well as the segfault; I 
don't know if the presence of such warnings has anything to do with why 
this particular test causes a linker segfault.

/scratch/jmyers/glibc/many8/build/glibcs/mips64-linux-gnu-n64/glibc/stdlib/test-canon2.o: In function `do_prepare':
/scratch/jmyers/glibc/many8/build/glibcs/mips64-linux-gnu-n64/glibc-src/stdlib/test-canon2.c:51: warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Binutils mailing list