From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE7A43858D28; Wed, 17 Nov 2021 14:10:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE7A43858D28 From: "hjl.tools at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28453] ld.so segfaults when relocating x86 libstdc++.so compiled with -fno-plt Date: Wed, 17 Nov 2021 14:10:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2021 14:10:11 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28453 --- Comment #4 from H.J. Lu --- I built libstdc++ with -fno-plt and -Wl,--as-needed,-O1,--hash-style=3Dgnu,-z,relro,-z,now using bfd linker. I got Dynamic section at offset 0x203c40 contains 29 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.s= o.2] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x000000000000000e (SONAME) Library soname: [libstdc++.so.6] 0x000000000000000c (INIT) 0x99000 0x000000000000000d (FINI) 0x18de44 0x0000000000000019 (INIT_ARRAY) 0x1fb898 0x000000000000001b (INIT_ARRAYSZ) 96 (bytes) 0x000000000000001a (FINI_ARRAY) 0x1fb8f8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x2a8 0x0000000000000005 (STRTAB) 0x2d120 0x0000000000000006 (SYMTAB) 0x9000 0x000000000000000a (STRSZ) 301565 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000003 (PLTGOT) 0x204e50 0x0000000000000007 (RELA) 0x7a340 0x0000000000000008 (RELASZ) 124464 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffc (VERDEF) 0x79b38 0x000000006ffffffd (VERDEFNUM) 48 0x0000000000000018 (BIND_NOW)=20=20=20=20=20=20=20=20=20=20=20 0x000000006ffffffb (FLAGS_1) Flags: NOW 0x000000006ffffffe (VERNEED) 0x7a1d0 0x000000006fffffff (VERNEEDNUM) 4 0x000000006ffffff0 (VERSYM) 0x76b1e 0x000000006ffffff9 (RELACOUNT) 892 0x0000000000000000 (NULL) 0x0 Please pass "-Wl,--verbose" to GCC to identify the linker used. --=20 You are receiving this mail because: You are on the CC list for the bug.=