[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/25948] New: gold: in --start-group, an undefined symbol in sha
From: |
i at maskray dot me |
Subject: |
[Bug gold/25948] New: gold: in --start-group, an undefined symbol in shared object does not fetch a previous archive |
Date: |
Fri, 08 May 2020 04:46:47 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25948
Bug ID: 25948
Summary: gold: in --start-group, an undefined symbol in shared
object does not fetch a previous archive
Product: binutils
Version: 2.35 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: i at maskray dot me
CC: ian at airs dot com
Target Milestone: ---
as /dev/null -o a.o
echo '.globl foo; .type foo,@function; foo:' > b.s && gcc -c b.s -o b.o && ar
rc b.a b.o
echo 'call foo' > c.s && gcc -shared c.s -o c.so
# GNU ld correctly fetches b.a(b.o)
ld.bfd a.o --start-group b.a c.so --end-group -y foo
# ld.bfd: c.so: reference to foo
# ld.bfd: b.a(b.o): definition of foo
# gold incorrectly errors. It should fetch b.a(b.o)
gold a.o --start-group b.a c.so --end-group -y foo
# c.so: reference to foo
# c.so: error: undefined reference to 'foo'
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/25948] New: gold: in --start-group, an undefined symbol in shared object does not fetch a previous archive,
i at maskray dot me <=