From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D649C3858D20; Mon, 15 Jan 2024 16:42:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D649C3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705336949; bh=XRIO2DqqidzfDaY5lNf2PfxAbmhz9FI8b7ui1XKFcAU=; h=From:To:Subject:Date:From; b=cIkuQyTMFcBkTXJygFr5/1vtXHTXLR9IZ2mc8xbLbCPHVxBA+H/i0tXAcR3+/Dq1P wQ4xL1wQnI72LI+jL78ekOG+t5Z8JtlcCtuOfj5v72mzLKH/DiK/TzKyXTMWS1h/X3 RARYHYfDMMpBM4muzxjJprZ4i0jFEv/mK5dwW4DI= From: "fw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/113403] New: __builtin_nested_func_ptr_created, __builtin_nested_func_ptr should be dynamically linked by default Date: Mon, 15 Jan 2024 16:42:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fw at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113403 Bug ID: 113403 Summary: __builtin_nested_func_ptr_created, __builtin_nested_func_ptr should be dynamically linked by default Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: fw at gcc dot gnu.org Target Milestone: --- There are hidden definitions of __builtin_nested_func_ptr_created, __builtin_nested_func_ptr in libgcc.a. As a result of the default link orde= r, the exported global definitions of these functions in libgcc_s.so.1 are nev= er used. This is unfortunate because it means that every DSO that creates a trampoli= ne gets its own trampoline cache (one TLS variable and two data pages for trampolines), increasing the overhead of this feature significantly.=