[Top][All Lists]

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

[Bug ld/13141] Confusing error message with --no-copy-dt-needed-entries

From: dank at kegel dot com
Subject: [Bug ld/13141] Confusing error message with --no-copy-dt-needed-entries
Date: Fri, 21 Dec 2012 19:38:00 +0000


dank at kegel dot com changed:

           What    |Removed                     |Added
                 CC|                            |dank at kegel dot com

--- Comment #1 from dank at kegel dot com 2012-12-21 19:38:00 UTC ---
I'm running into this myself, so I made a minimal test case.

set -ex
rm -f libf1.so* app
CFLAGS="-fno-builtin -Wl,--as-needed,--no-add-needed"
echo "#include <math.h>" > f1.c
echo "int f1(int x) { return x + 1 + sin(x / 100000.0); }" >> f1.c
gcc $CFLAGS -fPIC -shared f1.c -Wl,-soname=libf1.so.1 -lm -o libf1.so.1
ln -s libf1.so.1 libf1.so
echo "#include <math.h>" > app.c
echo "int main(int argc, char** argv) { return f1(argc) + sin(argc / 100000.0);
}" >> app.c
gcc $CFLAGS app.c -L. -Wl,-rpath=. -lf1 -o app

On Ubuntu 10.04, this reproduces the problem.
(On Ubuntu 12.04, it doesn't; somehow app has libm.so.1 in NEEDED anyway.)

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]