|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/23811] Explicitly mentioned libraries by -lx are not in the DT_NEEDED list |
Date: | Tue, 23 Oct 2018 23:27:34 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23811 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-10-23 CC| |hjl.tools at gmail dot com Ever confirmed|0 |1 --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- Works for me: address@hidden tmp]$ cat x.c #include <stdio.h> #include <stdlib.h> int main(void) { printf ("Your new glibc installation seems to be ok.\n"); exit (0); } address@hidden tmp]$ /usr/gcc-8.1.1-x32/bin/gcc x.c -lc -lBrokenLocale -lpthread -lcrypt -ldl -lgcc_s -lutil -lmvec -lresolv -lm -lrt -lanl address@hidden tmp]$ readelf -d a.out Dynamic section at offset 0x2d60 contains 36 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [libBrokenLocale.so.1] 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.0] 0x0000000000000001 (NEEDED) Shared library: [libcrypt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libdl.so.2] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libutil.so.1] 0x0000000000000001 (NEEDED) Shared library: [libmvec.so.1] 0x0000000000000001 (NEEDED) Shared library: [libresolv.so.2] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [librt.so.1] 0x0000000000000001 (NEEDED) Shared library: [libanl.so.1] 0x000000000000000c (INIT) 0x401000 0x000000000000000d (FINI) 0x4011c8 0x0000000000000019 (INIT_ARRAY) 0x403d50 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x403d58 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x0000000000000004 (HASH) 0x400308 0x000000006ffffef5 (GNU_HASH) 0x400330 0x0000000000000005 (STRTAB) 0x4003c8 0x0000000000000006 (SYMTAB) 0x400350 0x000000000000000a (STRSZ) 216 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x404000 0x0000000000000002 (PLTRELSZ) 48 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x400500 0x0000000000000007 (RELA) 0x4004d0 0x0000000000000008 (RELASZ) 48 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x4004b0 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x4004a0 0x0000000000000000 (NULL) 0x0 address@hidden tmp]$ -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |