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

            Bug ID: 23811
           Summary: Explicitly mentioned libraries by -lx are not in the
                    DT_NEEDED list
           Product: binutils
           Version: 2.32 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

With binutils 2.31.51.20181019, for a program

#include <stdio.h>
#include <stdlib.h>
int main(void) {
  printf ("Your new glibc installation seems to be ok.\n");
  exit (0);
}

calling “gcc /src/glibc228/input-file.c -lc -lBrokenLocale -lpthread -lcrypt
-ldl -lgcc_s -lnsl -lutil -lnss_dns -lnss_compat -lmvec -lresolv -lnss_db -lm
-lnss_files -lrt -lnss_hesiod -lanl -o /src/glibc228/output-file” does not put
BrokenLocale in the output of ldd.

According to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87710 this is not a
gcc bug.  With clang 6 the problem also appears, as with using gold or adding
-Wl,--no-as-needed.

See https://sourceware.org/bugzilla/show_bug.cgi?id=23807 for details.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to