bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/22397] New: BFD internal error when message locale isn't C


From: nintendocatz at msn dot com
Subject: [Bug ld/22397] New: BFD internal error when message locale isn't C
Date: Sat, 04 Nov 2017 20:18:52 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22397

            Bug ID: 22397
           Summary: BFD internal error when message locale isn't C
           Product: binutils
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: nintendocatz at msn dot com
  Target Milestone: ---

Hello,

Arch user here, I just hit this exact same bug with ld-2.29.1 without any
patches :
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=873485

I will repeat the information from this bug report here :
<quote>
When ld tries to localize a you-need-fPIC error in fr_FR.UTF-8 (french),
it aborts ("abandon") with an internal error ("erreur interne"):

$ cat wtf.c++
#include <iostream>
void lol() { std::cout << "fail"; }

$ LC_ALL="fr_FR.UTF-8" g++ -shared wtf.c++
/usr/bin/ld: /usr/bin/ld: BFD erreur interne (GNU Binutils for Debian)
2.29, abandon à ../../bfd/bfd.c:843 dans _doprnt

/usr/bin/ld: Merci de rapporter cette anomalie.

collect2: error: ld returned 1 exit status

When switching to C locale, ld outputs an error as expected:

$ LC_ALL="C" g++ -shared wtf.c++
/usr/bin/ld: /tmp/ccomgT5o.o: relocation R_X86_64_PC32 against symbol
`_ZSt4cout@@GLIBCXX_3.4' can not be used when making a shared object;
recompile with -fPIC /usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
</quote>

I'm not sure if the bug can be triggered with any other locale.
I couldn't find any bug report looking similar to this one.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]