From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F8A13858C27; Wed, 13 Oct 2021 08:56:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F8A13858C27 From: "qiu.chaofan at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/100912] powerpc64le: ieee128 long double incorrectly printed when using shared libstdc++ Date: Wed, 13 Oct 2021 08:56:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qiu.chaofan at outlook dot com X-Bugzilla-Status: WAITING 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2021 08:56:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100912 --- Comment #6 from Qiu Chaofan --- By changing the order of linked objects (move .libs/compatibility-ldbl.o .libs/compatibility-ldbl-alt128.o .libs/compatibility-ldbl-alt128-cxx11.o a= fter the series of convenience archives), the result under `-mabi=3Dieeelongdoub= le` is correct, but `-mabi=3Dibmlongdouble` goes wrong. Removing `--gc-sections` and use nm, we=E2=80=99ll see both `__vsnprintfieee128@@GLIBC_2.32` and `vsnprintf@@GLIBC_2.17` exist. So it l= ooks all the symbols (with the same name, _ZSt16__convert_from_vRKP15__locale_structPciPKcz) were visited by the link= er, but only the first one was kept.=