From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 1D5713857B83; Wed, 5 Oct 2022 21:43:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1D5713857B83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665006235; bh=yZ0prO86EWWwVHHYA8nRO+gFrx8kVq9/R1dQc5PkG8Q=; h=From:To:Subject:Date:From; b=ulsvTLhAEsdJg9ArCnwv8TX5dEptYEN/JT0N9eqewTQ1VydmeyNY/rTAIYFKks64q 7OnGPhbKL1oPtHvpj+xPyACzBeCtBSZu3BlpirwxteUAEsErhvN0n6qZ8s47RtSRqG Av4nc60BFNKXm/B+IHyfLKDIYd2rDO/0GnaW7LO4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] x86: Fix -Os build (BZ #29576) X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella Netto X-Git-Refname: refs/heads/master X-Git-Oldrev: 6128e82ebe973163d2dd614d31753c88c0c4d645 X-Git-Newrev: 9dc4e29f630c6ef8299120b275e503321dc0c8c7 Message-Id: <20221005214355.1D5713857B83@sourceware.org> Date: Wed, 5 Oct 2022 21:43:55 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9dc4e29f630c6ef8299120b275e503321dc0c8c7 commit 9dc4e29f630c6ef8299120b275e503321dc0c8c7 Author: Adhemerval Zanella Netto Date: Wed Sep 21 10:51:08 2022 -0300 x86: Fix -Os build (BZ #29576) The compiler might transform __stpcpy calls (which are routed to __builtin_stpcpy as an optimization) to strcpy and x86_64 strcpy multiarch implementation does not build any working symbol due ISA_SHOULD_BUILD not being evaluated for IS_IN(rtld). Checked on x86_64-linux-gnu. Reviewed-by: Carlos O'Donell Tested-by: Carlos O'Donell Diff: --- sysdeps/x86_64/multiarch/rtld-strcpy.S | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sysdeps/x86_64/multiarch/rtld-strcpy.S b/sysdeps/x86_64/multiarch/rtld-strcpy.S new file mode 100644 index 0000000000..19439c553d --- /dev/null +++ b/sysdeps/x86_64/multiarch/rtld-strcpy.S @@ -0,0 +1,18 @@ +/* Copyright (C) 2022 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include "../strcpy.S"