From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2B75A3858C1F; Wed, 22 Mar 2023 09:53:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B75A3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679478817; bh=frEchQ1AAwuAWMWvkQgspWTACXdtRPHBDUeTTY92qiU=; h=From:To:Subject:Date:From; b=UuQfNVF5kV+LE2S4RZTkKjpYQMpyNyipfP068RmV6PephiN3+PUJQKffl2vw0sXQm kZCbMWx5PLzPuZaFQ5Sb+Zc5jVt6R+QnvoBO1nnxHfrsZ/U7r1/q4KFKCNifsGwfis 7l0mT9N54PGjgLvZS2gt09FwRL1sMs8j2LjhFePo= From: "songmz1999 at foxmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBsaWJnY2MvMTA5MjQ1XSBOZXc6IGFhcmNoNjQgZ2NjIGRl?= =?UTF-8?B?ZmF1bHRzIHRvIC1tb3V0bGluZS1hdG9taWNzIGJ1dCBzeW1ib2wg4oCYX19h?= =?UTF-8?B?YXJjaDY0X3N3cDRfc3luY+KAmSBpcyBoaWRkZW4gaW4gbGliZ2NjLmE=?= Date: Wed, 22 Mar 2023 09:53:36 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: songmz1999 at foxmail dot com 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=3D109245 Bug ID: 109245 Summary: aarch64 gcc defaults to -moutline-atomics but symbol =E2=80=98__aarch64_swp4_sync=E2=80=99 is hidden in libg= cc.a Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: songmz1999 at foxmail dot com Target Milestone: --- I found an issue when compiling the connection process using the toolchain aarch64_gcc12.2.0_glibc2.31.0_fp with the error message=EF=BC=9A ~/aarch64_gcc12.2.0_glibc2.31.0_fp/aarch64-unknown-linux-gnueabi/bin/.ld: ../../../deploy/oms/bin/omsservice: hidden symbol `__aarch64_swp4_sync' in ~/aarch64_gcc12.2.0_glibc2.31.0_fp/bin/../lib/gcc/aarch64-unknown-linux-gnu= eabi/12.2.0/libgcc.a(swp_4_5.o) is referenced by DSO ~/aarch64_gcc12.2.0_glibc2.31.0_fp/aarch64-unknown-linux-gnueabi/bin/.ld: f= inal link failed: bad value The solution I've found so far is to enable the -mno-outline-atomics parame= ter at compile time. But why does gcc have -moutline-atomics enabled by default, but when calling the function '__aarch64_swp4_sync', it is hidden in libgcc= .a? Is there a better solution=EF=BC=9F=