From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3544D3857C4E; Mon, 8 Aug 2022 14:45:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3544D3857C4E From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug build/29456] missing DT_HASH section in shared objects Date: Mon, 08 Aug 2022 14:45:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com 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: 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: Mon, 08 Aug 2022 14:45:39 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29456 --- Comment #6 from Florian Weimer --- (In reply to Arkadiusz Hiler from comment #5) > (In reply to Florian Weimer from comment #3) > > Distributions configure or patch GCC to pass --hash-style=3Dgnu to the = linker > > by default. The linker default does not matter. >=20 > Thanks, that explains a few things. My gcc -v indeed claims that: >=20 > Configured with: /build/gcc/src/gcc/configure ... > --with-linker-hash-style=3Dgnu ... >=20 > According to gcc/docs/install.texi the default is sysv but after browsing > the code for a bit it looks like if `--with-linker-hash-style` is not > specified no `--hash-style` is passed to the linker so it would depend on > linker's defaults. >=20 > Do you know why distros do this? sysv hashing is much slower for symbol binding because we have to do a strc= mp even on lookup failure. The Bloom filter is missing, too. Once the glibc dynamic linker supported it, I think distributions really wanted to use it, even if binutils and GCC defaults had not caught up at that point yet. It f= ixes real issues around startup performance. --=20 You are receiving this mail because: You are on the CC list for the bug.=