Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2984441yba; Mon, 8 Apr 2019 08:41:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqynba91euEmTdYeLO74zxXGib0UHKx8UPcRrKzYYN1HhQ04V8i6XEWxyXYgxi8fl/PsGdRu X-Received: by 2002:aa7:8453:: with SMTP id r19mr31221912pfn.44.1554738101282; Mon, 08 Apr 2019 08:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554738101; cv=none; d=google.com; s=arc-20160816; b=Zz779WPl9exg9RgYyGvy8Fvpj4sTnU379wDWMOJkd8jt/CQIFAqZ1M9ww7gfUoIE7z uOoi3KEfHm8qoXl639c+W8AVXDmdbByehq/I69lGC62tKv19ePmSHYfQCPDlSot7vGmT 2pw6gzHAM5lsgXHXlzVa9ZKnzv8ZD+awo+12NQCoN4Pm79gjyHvK5JxINDe/A49TN2wE 0GIMwyS3WyEj6YoqMtMrwTTVdt4su+efgPskFCaiWcFW3MBs0pavdTcS4aZ2Uxr/KaFQ y/UMYMglXUsi7+NDLgO1Fiu6dEn3b0ear+WxpicDTOxrQn5PxEBM5qUcQXvXq5CkX8qv 2qaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=+t48Q8KkFENFm+kHlN+Brhw2DxX9JJkzfGw4eDrv4nU=; b=CnAJyac6ObbR7bKOZc5b1jo/nj5ma5rw8NC2LVtpIB0VC6qD9RsGYUzqpPY/Y3K3MQ r/aiuM+/26pvIkWPcYN/5p1LrZwIbUkk1viTBCILehHVrfqgy9bVnYrVqAnrqGHmGAqZ /IHK7adTG6RGSBJXyJLem+pPNO5NSd3Yddg5OaZrsIihAqG1VUKDX+09D4IREZ5OEB5s tbtujBwE0mQUIbPqcBDgeHgSzpq9/8XSFN/J58zi9dqZ5kiFFmLIZg+arsZY2zQqy1un t5XxoPE63RJW8ChZCuGF3mhk4a0OZ3GkcnFn1qhU/h5lMqZmsL46Ce5s+nBP2fkXHrQv 7hJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bk12MZVq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a15si26738109pgd.166.2019.04.08.08.41.26; Mon, 08 Apr 2019 08:41:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bk12MZVq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726996AbfDHOea (ORCPT + 99 others); Mon, 8 Apr 2019 10:34:30 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44764 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbfDHOea (ORCPT ); Mon, 8 Apr 2019 10:34:30 -0400 Received: by mail-wr1-f68.google.com with SMTP id y7so1086947wrn.11 for ; Mon, 08 Apr 2019 07:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=+t48Q8KkFENFm+kHlN+Brhw2DxX9JJkzfGw4eDrv4nU=; b=Bk12MZVqXgLoP8yrnqX1IgcCMRNPkZPIf3S9WZfcnv6P/zOGI/NYcJF2dzj/7PuSWt LRtKkpBC73qtQPZPx4Jvec89IHR1fSg1tOg+eG8NQGzhdcv6OsrOqZH1CBZev5k1rPpM q5AP+1aOMuGsDEPRhzY2oeugQRUOsXa4/+BE39k4rxjBcsmXT1v02nkvV5+ND5xdm3kO ixYCgdj3AORpLjAfpXMMxI+/O+dtrRuavsQoY69cdgrp0Yqix93pi/KGpH5Z4d8dWrU9 +IGGUfKNVELER3AzO36uyx3l0OUlmOS613QRxqpTvVCJ3BipUgwRhoxL+3kXpKkhd+28 6R2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=+t48Q8KkFENFm+kHlN+Brhw2DxX9JJkzfGw4eDrv4nU=; b=dAeLdDpuefIijskMhzYBacwB4/F4AAmaPIp1yRP215lp2GGmXzc05bUr6gpSP+usPx EPsRUmGil9MZtRrFFWdKgANoy+BmjPpl1D+Gp/xpBoGuWGBw+CFnJAeVq3zQ3aU/3xrf 2CcLPV/s71UsztoIEYYwfXIchOdjzbgOKLgJaKi3XbAuDrPPbhIyqcvRlXo6BOpjGnyZ TXemWnh2p7xEss1Qfea5RxKTDCpXxiwb0M+/4+wuICb/Ds5Wju9Bk5XlNfLLOmvGgqkI mWdwbc+oDcnjWtzv+iBX9jy7rHCx9YgbEHBJzVgBrQ99K7UXZ9In8aSfqaZqBCkGiB6c 6JFQ== X-Gm-Message-State: APjAAAWmOdbMivsHwwt2E3/675ePqzZmiYfhRc4h756OdGzYLGcFGhZL TJhuMIG9uNkvMAO+n72g7FUN52djv2mqO+ktFpk= X-Received: by 2002:adf:c002:: with SMTP id z2mr18762171wre.177.1554734067583; Mon, 08 Apr 2019 07:34:27 -0700 (PDT) MIME-Version: 1.0 References: <99dde862-6aee-65a0-8b39-33b8ac10df45@redhat.com> <863a33cf-0a1a-17af-0ea8-42e288f8a1fd@redhat.com> In-Reply-To: <863a33cf-0a1a-17af-0ea8-42e288f8a1fd@redhat.com> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 8 Apr 2019 16:34:16 +0200 Message-ID: Subject: Re: CBL issue #431: lld: x86_64: sysfs: cannot create duplicate filename $module/.rodata.cst{16,32} To: Denys Vlasenko Cc: linux-kernel@vger.kernel.org, x86@kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 8, 2019 at 4:29 PM Denys Vlasenko wrote: > > On 4/8/19 4:23 PM, Sedat Dilek wrote: > > For the .rodata.cst16 part you mean sth. like this? > > yes, see below > > > --- a/arch/x86/crypto/camellia-aesni-avx-asm_64.S > > +++ b/arch/x86/crypto/camellia-aesni-avx-asm_64.S > > @@ -573,8 +573,12 @@ > > ENDPROC(roundsm16_x4_x5_x6_x7_x0_x1_x2_x3_y4_y5_y6_y7_y0_y1_y2_y3_ab) > > vmovdqu y7, 15 * 16(rio); > > > > > > -/* NB: section is mergeable, all elements must be aligned 16-byte blocks */ > > -.section .rodata.cst16, "aM", @progbits, 16 > > +/* > > + * NB: section is mergeable, all elements must be aligned 16-byte blocks > > + * There is more than one object in this section, let's use module name > > + * instead of object name as unique suffix > > + */ > > +.section .rodata.cst16.camellia-aesni-avx-asm_64, "aM", @progbits, 16 > > dashes in the name may cause problems, replace with '_'. > > > .align 16 > > > > #define SHUFB_BYTES(idx) \ > > diff --git a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > index b66bbfa62f50..d6ce36e82a93 100644 > > --- a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > +++ b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S > > @@ -626,8 +626,12 @@ > > ENDPROC(roundsm32_x4_x5_x6_x7_x0_x1_x2_x3_y4_y5_y6_y7_y0_y1_y2_y3_ab) > > .long 0x00010203, 0x04050607, 0x80808080, 0x80808080 > > .long 0x00010203, 0x04050607, 0x80808080, 0x80808080 > > > > -/* NB: section is mergeable, all elements must be aligned 16-byte blocks */ > > -.section .rodata.cst16, "aM", @progbits, 16 > > +/* > > + * NB: section is mergeable, all elements must be aligned 16-byte blocks > > + * There is more than one object in this section, let's use module name > > + * instead of object name as unique suffix > > +*/ > > +.section .rodata.cst16.ccamellia-aesni-avx2-asm_64, "aM", @progbits, 16 > > dashes in the name may cause problems, replace with '_'. Oops. v2: sdi@iniza:~/src/linux-kernel/linux$ git --no-pager diff diff --git a/arch/x86/crypto/camellia-aesni-avx-asm_64.S b/arch/x86/crypto/camellia-aesni-avx-asm_64.S index a14af6eb09cb..712d6a7e8b8f 100644 --- a/arch/x86/crypto/camellia-aesni-avx-asm_64.S +++ b/arch/x86/crypto/camellia-aesni-avx-asm_64.S @@ -573,8 +573,12 @@ ENDPROC(roundsm16_x4_x5_x6_x7_x0_x1_x2_x3_y4_y5_y6_y7_y0_y1_y2_y3_ab) vmovdqu y7, 15 * 16(rio); -/* NB: section is mergeable, all elements must be aligned 16-byte blocks */ -.section .rodata.cst16, "aM", @progbits, 16 +/* + * NB: section is mergeable, all elements must be aligned 16-byte blocks + * There is more than one object in this section, let's use module name + * instead of object name as unique suffix + */ +.section .rodata.cst16.camellia_aesni_avx_asm_64, "aM", @progbits, 16 .align 16 #define SHUFB_BYTES(idx) \ diff --git a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S index b66bbfa62f50..34f6b0c4196d 100644 --- a/arch/x86/crypto/camellia-aesni-avx2-asm_64.S +++ b/arch/x86/crypto/camellia-aesni-avx2-asm_64.S @@ -626,8 +626,12 @@ ENDPROC(roundsm32_x4_x5_x6_x7_x0_x1_x2_x3_y4_y5_y6_y7_y0_y1_y2_y3_ab) .long 0x00010203, 0x04050607, 0x80808080, 0x80808080 .long 0x00010203, 0x04050607, 0x80808080, 0x80808080 -/* NB: section is mergeable, all elements must be aligned 16-byte blocks */ -.section .rodata.cst16, "aM", @progbits, 16 +/* + * NB: section is mergeable, all elements must be aligned 16-byte blocks + * There is more than one object in this section, let's use module name + * instead of object name as unique suffix +*/ +.section .rodata.cst16.ccamellia_aesni_avx2_asm_64, "aM", @progbits, 16 .align 16 /* For CTR-mode IV byteswap */ diff --git a/arch/x86/crypto/cast6-avx-x86_64-asm_64.S b/arch/x86/crypto/cast6-avx-x86_64-asm_64.S index 7f30b6f0d72c..fcd5732aba4d 100644 --- a/arch/x86/crypto/cast6-avx-x86_64-asm_64.S +++ b/arch/x86/crypto/cast6-avx-x86_64-asm_64.S @@ -225,7 +225,12 @@ vpshufb rmask, x2, x2; \ vpshufb rmask, x3, x3; -.section .rodata.cst16, "aM", @progbits, 16 +/* + * NB: section is mergeable, all elements must be aligned 16-byte blocks + * There is more than one object in this section, let's use module name + * instead of object name as unique suffix + */ +.section .rodata.cst16.cast6_avx_x86_64_asm_64, "aM", @progbits, 16 .align 16 .Lxts_gf128mul_and_shl1_mask: .byte 0x87, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 I tried to check for the .rodata.cst32 case, how do I identify the *.S files? - Sedat -