Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2917205yba; Mon, 8 Apr 2019 07:24:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqySW2OE3kpXjdf7M+rZfoB07b6qumNt6sYAQ+klTPfgNkEI1MYZMRbbFikZg6SxgEFJu7H2 X-Received: by 2002:a63:4241:: with SMTP id p62mr28755404pga.379.1554733499113; Mon, 08 Apr 2019 07:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554733499; cv=none; d=google.com; s=arc-20160816; b=H6f3CCOeRjRph1oXeUqIYxLKiVwOQw6Q206pVVORU0YlgHB1WRa0JaAumo1Py8J+1D FTm1f7SQb7lBezdpbp8ksWc4Cat3qkCzCUYPH84BCF86IGqO4DR4rmG0GsSeqYBL2hbl gDKmXji05Q8I4FTWY0G5iHczOirx0CENZ8PW7WuRu/89sB1/PMy6TRcWsVvkhiIylFN6 TkOP8fZekq9Xo1Eng2WO7ivKn7x57ud7wxg4IlZlGnvljj7/YdzUrcMN8NswFArRqJy0 wtSRYgoiBdOTw22XnNKJ79eVmlKycvoVk80ALUikQaXIbS5TY4HZOQmYB3qyxmy+b0+F y0/Q== 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=hJZeisUDTLSfqcq/veZ5B7pzvTvzhEpC8ZWVzvwPuls=; b=u6R6NN1cYnjgh8ALsLdFjB9cieV1TNYYerKJ52lfUI96jzZVNsaUwT0coUyajbBUaM SVBIkuMC/BSfS7pnGZe/OiDKcMEY9mX6pOlrzucOpTfIY+TXbmvjkgIy8hybvNvK6PhH WFcxg8khazs/9B6ulpG1h3wC+PdDdu5EENZ1PxMHVmqaaV7pqtE0hmuQybfaaNqQes9R y12/DAFvTTAvoTNsE2Mhq1TUoVcowNJGSJMELDyHoftxBBqjJ4z3lmNLNni2ifCuqjpX lxbtcltvdexKkzCGs7UrTMCtR2NlfZCTRChlVhAOt5WwAv1nzkIS0tfhmZ6By+6eXGWU RZeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FKMeJicU; 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 h66si2887584pgc.418.2019.04.08.07.24.42; Mon, 08 Apr 2019 07:24:59 -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=FKMeJicU; 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 S1726635AbfDHOX7 (ORCPT + 99 others); Mon, 8 Apr 2019 10:23:59 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33362 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfDHOX7 (ORCPT ); Mon, 8 Apr 2019 10:23:59 -0400 Received: by mail-wm1-f68.google.com with SMTP id z6so98243wmi.0 for ; Mon, 08 Apr 2019 07:23:57 -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=hJZeisUDTLSfqcq/veZ5B7pzvTvzhEpC8ZWVzvwPuls=; b=FKMeJicUbfagnmgT+Hay4+CphiW8FmCgFGhFy9nJtJCXw9rIqe6tzZzKzFXfREKdii A2ZZRomh/t9S3W/MMmfRv4mBchuQRLUvsXDTsRhxVghzn0Pblsh/45fIjU9p1uQDQjcl 82tuxbqrjwLsF+wXrULEWV8SwIc8BfYEXsp5Qze69uKxWs1ynjeQ+gfTsHU2jt0n/tmC WBx1Kk/fnhAcXGqLgVb16yCsvSDgLzDf+rCYh5xwNFRT7f2SnlpBFm7z+9IBe8tCjkfo GP6BTMm0Y+6GYcuT32cvPQ8XnCookdCTRlzovlJIn9azsBgbNlmG7gK6KfeCBRW8hgHb XcJw== 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=hJZeisUDTLSfqcq/veZ5B7pzvTvzhEpC8ZWVzvwPuls=; b=gB25UUmVEUqjka11T014O88fRdcbDrW9E9Rom5NGUeB9tHvsAwEhsHocLJf+ECbVwc 4jQqkp0i7lEkMc7VAjPa/e4hOBqyKI1RTvC16cQpHzHXg0DUw329IoB4BMDB3gNa9LqQ CnNhke9Vgv7tX6K67qRb4XZxT8+hOx8hcvbL/Lo5Sc21SCBkuRVxrbpPai4NT42SwFzO vMQA4NQwB5YLDMuAgbIvu+PGLU6v+St7iKjNZKhc+fUiqASnIT8KNj3aOgNc+00K3fbK 6jznwidWQxQga8iuesw4qq8c//VBIB6sLPh/N2oh5fDuMYyngNG3i4kKGzD/45xj4p9c BmLA== X-Gm-Message-State: APjAAAX1Ezrvib4NvyI2k7Gvo/F1aSn2BGtzoyPzr5Yf8OqmpLOCSA2Z j9G2tHG/AAGGDxr1mylM7n9+Qx+NV7JO9BGG5iU= X-Received: by 2002:a7b:c4d2:: with SMTP id g18mr1090912wmk.108.1554733437235; Mon, 08 Apr 2019 07:23:57 -0700 (PDT) MIME-Version: 1.0 References: <99dde862-6aee-65a0-8b39-33b8ac10df45@redhat.com> In-Reply-To: <99dde862-6aee-65a0-8b39-33b8ac10df45@redhat.com> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 8 Apr 2019 16:23:45 +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 3:58 PM Denys Vlasenko wrote: > > On 4/8/19 3:56 PM, Denys Vlasenko wrote: > > I propose to change section name, append _module_ name and optionally > > a comment why this is done: > > > > /* 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 > > + as unique suffix */ > > Probably not clear enough... maybe this is better: > > +/* There is more than one object in this section, let's use module name > + instead of object name as unique suffix */ > -.section .rodata.cst16, "aM", @progbits, 16 > > and do not use '-' in the name, replace with '_': > > +.section .rodata.cst16.cast6_avx_x86_64_asm_64, "aM", @progbits, 16 > > Hi Denys, Thanks for the quick answer! For the .rodata.cst16 part you mean sth. like this? 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..19b2b80258d2 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..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 .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 Regards, - Sedat -