public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/30256] New: ldd says "statically linked" when its not
@ 2023-03-21  8:27 stsp at users dot sourceforge.net
  2023-03-21  9:19 ` [Bug dynamic-link/30256] " schwab@linux-m68k.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: stsp at users dot sourceforge.net @ 2023-03-21  8:27 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 30256
           Summary: ldd says "statically linked" when its not
           Product: glibc
           Version: 2.36
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: stsp at users dot sourceforge.net
  Target Milestone: ---

Use any dummy source:

void foo(void) {}


Then do:
$ cc -Wall -o libmain.so main.c -shared
$ ldd libmain.so 
        statically linked
$ file libmain.so 
libmain.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically
linked, BuildID[sha1]=29a7d60ebcdb6cfae41bc1628c52a8bfc0a65e8f, not stripped


So obviously "file" provides more precise
info than ldd, which mistakenly says the
binary is statically linked when its not.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-21 15:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21  8:27 [Bug dynamic-link/30256] New: ldd says "statically linked" when its not stsp at users dot sourceforge.net
2023-03-21  9:19 ` [Bug dynamic-link/30256] " schwab@linux-m68k.org
2023-03-21  9:45 ` stsp at users dot sourceforge.net
2023-03-21 10:07 ` schwab@linux-m68k.org
2023-03-21 11:26 ` stsp at users dot sourceforge.net
2023-03-21 11:56 ` schwab@linux-m68k.org
2023-03-21 12:15 ` stsp at users dot sourceforge.net
2023-03-21 12:59 ` stsp at users dot sourceforge.net
2023-03-21 13:24 ` schwab@linux-m68k.org
2023-03-21 15:09 ` stsp at users dot sourceforge.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).