From patchwork Fri Apr 30 18:28:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 1472440 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ZWzxSL57; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FX18P6xWrz9sXN for ; Sat, 1 May 2021 04:28:21 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E6717385481C; Fri, 30 Apr 2021 18:28:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E6717385481C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1619807300; bh=dH1vywCAnfiq7wyYNRxnLShk0/YTw3jbxuLkh66gJTI=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ZWzxSL57zgIJ7VzhNRmpxorI98Xipym7urMJc1oAd1DMm2Kqm9CeXVT/NTh7+Ngr1 jFU+tsLlOO/vEN9dlIbkIN+Yp54WVrQocNDRpsUXlrdWlQi8E8p4uuGinmdrc7ncZW cbJedcRZuMhmHOltoW9RToQpyMKmZpnlywsjwKME= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 3D865385803C for ; Fri, 30 Apr 2021 18:28:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3D865385803C Received: by mail-pg1-x535.google.com with SMTP id i14so5478331pgk.5 for ; Fri, 30 Apr 2021 11:28:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dH1vywCAnfiq7wyYNRxnLShk0/YTw3jbxuLkh66gJTI=; b=ImlegXCzZcmS1cEkHEB3EDpUfd5f79MIvArwIJFL3V6EqJ6OdqM/De92GMdR/TznkX Tcq97VeUWhHksqQdrTwG0KfkKvvraf7AR1XFeEuji83jt5EpV+/PcQqZMlI/fTQbLOVF wVbWyWb3JMfYfCOryMPRzRUsR+0Au/vO6X9Qh5ekWM0v6hYLk3KwUBhRWe/A+pEDBK2v fBjKOX/5DL1VeXuswAOZ9O/gaCm5Dzj4FM+drD7WcyN53TWWL+sqz0RChVrKoaNosQYT /kDLW6KH6psbSU+4usitUyL0BhYEaxwzVIMSDLkXbTFMxY5Klvld+N3061RLVgsCsM+w SwvQ== X-Gm-Message-State: AOAM532EJeiR2Co593VTr7G4F1DctfQIg3tkxHFaCEEJ/hVVQixcMHDz Y6lmg9k7TlB59g8ZNsyI4C/tWw0AKjiFMQ== X-Google-Smtp-Source: ABdhPJzckvbCSLwkV6UVW4HUnWakqlTa7QOsnqjqIeW3GsHZdhyF1iHqs8Bv/J4nzIR67aW6MRcByw== X-Received: by 2002:a63:b09:: with SMTP id 9mr5867755pgl.107.1619807297076; Fri, 30 Apr 2021 11:28:17 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::ef3]) by smtp.gmail.com with ESMTPSA id z65sm2930244pfb.13.2021.04.30.11.28.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 11:28:16 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH] Propagate -ffile-prefix-map from CFLAGS to ASFLAGS. Date: Fri, 30 Apr 2021 11:28:14 -0700 Message-Id: <20210430182814.1164481-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Khem Raj via Libc-alpha From: Khem Raj Reply-To: Khem Raj Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" -ffile-prefix-map could be used as superset to imply -fdebug-prefix-map as well, therefore it should be propagated too, so cases when -ffile-prefix-map is used but -fdebug-prefix-map is not, then it should still rewire the paths in debug info --- Makeconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makeconfig b/Makeconfig index 01f8638c2e..5a675e20e3 100644 --- a/Makeconfig +++ b/Makeconfig @@ -1067,7 +1067,7 @@ endif # The assembler can generate debug information too. ifndef ASFLAGS -ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS)) +ASFLAGS := $(filter -g% -ffile-prefix-map=% -fdebug-prefix-map=%,$(CFLAGS)) endif override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu)