From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7342F384AB57; Tue, 21 May 2024 15:43:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7342F384AB57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1716306220; bh=FCnWzXS4Fwa/OTjn8uTBsuKXwHH3EkYMerb/lw90yl8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y24ZKiekjJLbGBhBidUvc3psZGmlKW4QiEDC8S4meNX817LmhMc/THLUzWwWex3vq zzJfrCh3Ft8DGPOp76gFSmgxgEsp5RyNePrAfmch+2JKk/8/apqoIUO/FyLJg/LO85 ALOrauS1KO5aqZ2BqqiKlm4hoYaKMm/SBwS/Vvmw= From: "crrodriguez at opensuse dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/115170] __cxa_atexit@plt even if -fno-plt Date: Tue, 21 May 2024 15:43:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: crrodriguez at opensuse dot org X-Bugzilla-Status: REOPENED 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: resolution bug_status Message-ID: In-Reply-To: References: 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=3D115170 Cristian Rodr=C3=ADguez changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|MOVED |--- Status|RESOLVED |REOPENED --- Comment #6 from Cristian Rodr=C3=ADguez --- I found it in executable made with current GCC HEAD on x86_64..=20 It is sufficient to demonstrate with the example code here https://en.cppreference.com/w/c/program/atexit ggcc-15 -march=3Dnative -Wall -Wextra -O2 -g -fPIE (or -fPIC) -fhardened -f= no-plt example.c 1172: call 1040 <__cxa_finalize@plt> 11fd: jmp 1050 <__cxa_atexit@plt>=