[Top][All Lists]

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

[Bug gold/17406] New: gold ignores --as-needed

From: jengelh at inai dot de
Subject: [Bug gold/17406] New: gold ignores --as-needed
Date: Wed, 17 Sep 2014 18:48:22 +0000


            Bug ID: 17406
           Summary: gold ignores --as-needed
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at google dot com
          Reporter: jengelh at inai dot de
                CC: ian at airs dot com

gold seems to ignore the --as-needed option.

Command issued:
echo -en '#include <pcre.h>\nint main(void) { return (long)pcre_compile; };\n'
gcc-4.9 -fuse-ld=gold -Wl,--as-needed -lpcre x.c

(no output - gold exited with success)

Behavior like ld.bfd:
/tmp/cc6uYVGr.o: In function `main':
x.c:(.text+0x5): undefined reference to `pcre_compile'
collect2: error: ld returned 1 exit status

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]