bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/19886] New: PR17287 --as-needed regression


From: glebfm at altlinux dot org
Subject: [Bug ld/19886] New: PR17287 --as-needed regression
Date: Wed, 30 Mar 2016 16:49:42 +0000

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

            Bug ID: 19886
           Summary: PR17287 --as-needed regression
           Product: binutils
           Version: 2.27 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: glebfm at altlinux dot org
  Target Milestone: ---

The fix for PR17287 (commit 1240be6b7d0a5604c4e3efe12c9e1d08ebc246be)
introduced a regression:

$ printf "#include <stdlib.h>\n void f(void* p) { free(p); }" | gcc -xc - -c
-fPIC -o f.o
$ ld -shared f.o /lib64/libc.so.6 -o libf.so
$ gcc -c -fPIC -xc /dev/null -o b.o
$ ld -shared -o libb.so b.o -L. -lf --as-needed /lib64/libc.so.6
/lib64/ld-linux-x86-64.so.2
$ readelf -dW libb.so | grep 'NEEDED.*ld-linux'
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]

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