bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/29980] New: error: undefined reference to plenty of exported s


From: mh-sourceware at glandium dot org
Subject: [Bug gold/29980] New: error: undefined reference to plenty of exported symbols that are referenced as hidden symbols
Date: Tue, 10 Jan 2023 09:14:36 +0000

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

            Bug ID: 29980
           Summary: error: undefined reference to plenty of exported
                    symbols that are referenced as hidden symbols
           Product: binutils
           Version: 2.39
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: mh-sourceware at glandium dot org
                CC: ian at airs dot com
  Target Milestone: ---

We've recently got this link failure with armv7 android Firefox, which appeared
from some innocuous and unrelated change, and disappeared a few days later on
some other unrelated change. Both BFD ld and gold fail, but lld doesn't. It
might imply some kind of weird corner case. What's kind of special about the
missing symbols is that they appear in a library that was produced by the rust
compiler, and as such they are "normal" exported symbols, but they are
referenced from C++ code compiled with clang, where they have a hidden
visibility attached in the corresponding object files. That however is not a
new setup, as that has been how Firefox is linked for years, and is still the
case now that it works again.

Here is a (large, unfortunately) tarball containing all the files needed to
reproduce:
https://drive.google.com/file/d/17HlPvI30nTTX2jdlnV0-erhn5dQZZKp2/view?usp=sharing

The command to run is in the testcase/command file.

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