From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43C193858C5F; Tue, 21 Mar 2023 08:27:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43C193858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1679387255; bh=6X+GAZyxodfQAefhmIV/6ry+OUtGUrigsZ08S1Wx1xk=; h=From:To:Subject:Date:From; b=pQNtMvtwe9r3UBW58XnXwt1rI0U0iqqgG2g5l7Gil3X03BZOG7Do9PKOMioiSaKy8 HtfWcX1Ic4z0e8vtSx2xokSp9LLdFMfpvH7nHdKPjUc89rpePA4mfLLn8BGVZg8sTi 6i1KQEugeFDrmKFZ/sGcQSc2mWuVJbNpIWZMA9Yo= From: "stsp at users dot sourceforge.net" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/30256] New: ldd says "statically linked" when its not Date: Tue, 21 Mar 2023 08:27:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stsp at users dot sourceforge.net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30256 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=20 statically linked $ file libmain.so=20 libmain.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamic= ally linked, BuildID[sha1]=3D29a7d60ebcdb6cfae41bc1628c52a8bfc0a65e8f, not strip= ped So obviously "file" provides more precise info than ldd, which mistakenly says the binary is statically linked when its not. --=20 You are receiving this mail because: You are on the CC list for the bug.=