bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/28879] [2.38 Regression] ld.bfd: possibly incorrect "undefined r


From: hjl.tools at gmail dot com
Subject: [Bug ld/28879] [2.38 Regression] ld.bfd: possibly incorrect "undefined reference" errors
Date: Fri, 11 Feb 2022 22:12:14 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com

--- Comment #10 from H.J. Lu <hjl.tools at gmail dot com> ---
Created attachment 13974
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13974&action=edit
A testcase

[hjl@gnu-tgl-3 pr28879]$ make
g++ -D_GLIBCXX_ASSERTIONS -flto   -c -o pr28879c.o pr28879c.cc
g++ -fPIC   -c -o pr28879b.o pr28879b.cc
g++ -fPIC   -c -o pr28879a.o pr28879a.cc
g++ -Wl,--no-demangle -shared -o libpr28879a.so pr28879a.o
g++ -Wl,--no-demangle -shared -o libpr28879b.so pr28879b.o libpr28879a.so
g++ -Wl,--no-demangle -o x pr28879c.o libpr28879b.so -Wl,-R,.
/usr/local/bin/ld: ./libpr28879a.so: undefined reference to
`_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make: *** [Makefile:25: x] Error 1
[hjl@gnu-tgl-3 pr28879]$

-- 
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]