From patchwork Tue Feb 7 13:12:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 64445 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2B1B23858D35 for ; Tue, 7 Feb 2023 13:14:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B1B23858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675775686; bh=+xvGUOPNjx7ilSHGCI6qct+D57TgDg/t9tA8o5SFz7Y=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=aUkjjWRp2jGjddLe0LdN1XEI5IGYaPWo2Y0r30OaAMTID1mHLq9ztq4OFVrzfS1fz fl/DNM/OYj4/f19mS3Z0VFhP79U3aDTNLVB0zYWsNAA5MhKIpPHXD7jHvXILAJ6LWq K2vbWLqq0FofRR7jEtMU0XW3YxsIj1sqT2e/6wsw= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 749EB3858414 for ; Tue, 7 Feb 2023 13:13:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 749EB3858414 Received: by mail-ot1-x336.google.com with SMTP id 14-20020a9d010e000000b0068bdddfa263so4154758otu.2 for ; Tue, 07 Feb 2023 05:13:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+xvGUOPNjx7ilSHGCI6qct+D57TgDg/t9tA8o5SFz7Y=; b=4Gx8oFkDCTPlpXaI7V2e+9vAG/gG4LsWdUUUu+llIhDKpV4/PdMeEdClmaTEDzwx4D rZkJtcoCSDD+naxbLh2xLLD3bcaK+QNgJdph2AyBu2wsOone4Z0s4vjG5/ulNkLegGOz 6rf0uSAM0YJ0BxxzQ1xO6p9sHCfOJyyrW8EbJZzD19Afh25o61gk/cY18VwKb+AxFnHj 249QGrUcrL1vGn+siwERFHJanNYcXR/tOyk3hTkt+8hvU5S2QysncI3nr21jBh2HFrFd 3JbLwtA4zGB18XGRDdR0gXDXtI3ZnHC+F7Jpm/AiidyF5IJ7JVPgWDQ4TcENy0VaodkF Pvpw== X-Gm-Message-State: AO0yUKUlWGWqQBXeMrjxhviqVJLWdx8r8Om2guoTGXvsgslcOpe1LUVk OBxZuWYC8D2A8bkf7ldnyIn5pfWXbdYXlyd1d8w= X-Google-Smtp-Source: AK7set/JoC1jMGQDRINjpz5MlgCnvdsRRDwapO6V9JqX168GLnhu4rX+WnoV5bsbT6BxGeYgcR5fMQ== X-Received: by 2002:a05:6830:906:b0:68b:d0db:f8c5 with SMTP id v6-20020a056830090600b0068bd0dbf8c5mr2620224ott.16.1675775585281; Tue, 07 Feb 2023 05:13:05 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:8ced:3d04:3626:cc0e:457c]) by smtp.gmail.com with ESMTPSA id c15-20020a9d75cf000000b0068bbaf7a1b0sm6414113otl.34.2023.02.07.05.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 05:13:04 -0800 (PST) To: libc-alpha@sourceware.org, Richard Henderson , Noah Goldstein Subject: [PATCH 3/3] string: Disable stack protector in early static initialization Date: Tue, 7 Feb 2023 10:12:55 -0300 Message-Id: <20230207131255.3396143-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230207131255.3396143-1-adhemerval.zanella@linaro.org> References: <20230207131255.3396143-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" For powerpc, strncmp is used on _dl_string_platform issued by __tcb_parse_hwcap_and_convert_at_platform. Reviewed-by: Carlos Eduardo Seo --- string/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/string/Makefile b/string/Makefile index 3eced0d027..c84b49aaa5 100644 --- a/string/Makefile +++ b/string/Makefile @@ -230,6 +230,8 @@ LDFLAGS-tst-xbzero-opt = -z now # Called during TLS initialization. CFLAGS-memcpy.c += $(no-stack-protector) CFLAGS-wordcopy.c += $(no-stack-protector) +# Called during static initialization +CFLAGS-strncmp.c += $(no-stack-protector) CFLAGS-argz-next.c += $(config-cflags-wno-ignored-attributes) CFLAGS-basename.c += $(config-cflags-wno-ignored-attributes)