bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26530] Inconsistency in between bfd and gold about -Wl,--as-need


From: hjl.tools at gmail dot com
Subject: [Bug ld/26530] Inconsistency in between bfd and gold about -Wl,--as-needed
Date: Tue, 25 Aug 2020 13:08:01 +0000

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

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

$ make
gcc -B./ -O2 -g -flto -c -o pr26530c.o pr26530c.c
gcc -B./ -O2 -g -fPIC -c -o pr26530a.o pr26530a.c
gcc -B./ -shared -o libpr26530.so pr26530a.o
gcc -B./ -O2 -g -c -o pr26530b.o pr26530b.c
ar rc -o libpr26530.a pr26530b.o
gcc -B./ -Wl,--as-needed -o x pr26530c.o libpr26530.so libpr26530.a -Wl,-R,.
./x
make: *** [Makefile:14: all] Aborted (core dumped)

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