Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2999322yba; Mon, 8 Apr 2019 09:01:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwST5yJ4+Sg/7Ln9SiqqqVg2uY1KBdM2ydhHgdthfUogDV/Ji96sAF2w/uD4LGFMnaArnKL X-Received: by 2002:aa7:85d9:: with SMTP id z25mr30610999pfn.31.1554739263162; Mon, 08 Apr 2019 09:01:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554739263; cv=none; d=google.com; s=arc-20160816; b=spsTA3k1qbY2zoyDVrjOztATJKUHRYVnpNxCNzha4rr1ZjmfCj9oVYDPrUkeLyVg2R UMuYmQ9heRyHZ6xs4dv+HqSfCfgvMMqTe1YKp7pCzA7smT7RaYy5/ASxj2T+JsCFYUJC YcXFcidGYihbwfYkbS1lcDcwpvKMesdIKOguus528E8eZWbq+JVi6qWNxfoFArU+vv8T B+wDIyDPLnVmExz3rTEFmtiM/NWo7Jb5zUvVKzUjb/PbzmGOuhq1vq4SeAk9CwwOmy7I /dhp5TaNQFKpawlYyySSwlCTjJr4H/Y+5mFIQQbqtzZw4Usq66vsAJJsiwMty/WlLWcU r0Uw== 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=IfnOO1+SEUKyKQDFwMTXRvfcI+8sw2PMhyHbHUfe+b0=; b=dCA+YH8qc8gVCCP5hGVhtvl5f5P0H6qb7ybqF2/CVvqTw4UaNGLOmGIwRnhGXB+5Gx GmdqeEPfG8QIHsuj2MYix3w87jVhemk/827l4LOlycin+MHENLOpufipzdFslmIZ4P9T 03c7yJFEWZ5LE6UTrxDMyuyfZutCd0zfI/vAPNn521vu818ijfzktVWxODE445CAh3n3 AK71TcMPkNIh7sI1usxPAcsYIPDT04IwbppC7R6R6yOUv0559JIl0AjMludkyvSu3Nms cV2jmYr6zWnnn/FuDA8VBV/KIk4d+/GB6dWrbfIp/Q0yT2slCS1rGF8irPa9/ipsCsIm SNtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Y/6pMuKa"; 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 f17si16518445pgd.243.2019.04.08.09.00.47; Mon, 08 Apr 2019 09:01:03 -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="Y/6pMuKa"; 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 S1728795AbfDHPRB (ORCPT + 99 others); Mon, 8 Apr 2019 11:17:01 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35280 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727013AbfDHPRA (ORCPT ); Mon, 8 Apr 2019 11:17:00 -0400 Received: by mail-wm1-f68.google.com with SMTP id y197so15189100wmd.0 for ; Mon, 08 Apr 2019 08:16:59 -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=IfnOO1+SEUKyKQDFwMTXRvfcI+8sw2PMhyHbHUfe+b0=; b=Y/6pMuKaiR+nYqJhjTD76wlvEZXaeGwkUVT93Kq5w2xkc+4/iRgSlwCPb/LhFapqsZ tH/TEA1OpdxIfS10SFCRByJ/21WH+jJufX6Plxz+y9Z4lEKPtlZvreRoTRzesvJWqVUI UxtxxYLg6Wcg1RI24tzFRT8Jd0LaPY0kV62aWGNaitTfaB/XJL2oUYOQviDIO+pjTaoJ PTJwkqdfMRLxufDWGVdVIaJ0FN1t6QAXERHgH3c+guWQCpXK9/1jOlEiSP6sNaI1F/GU 5GrXZqIayEOD4xJf/ajpjYxjBttRBnQx6BL+94HxlRn62gREHMcaYKvSYw3jlOLSnb0S wrPw== 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=IfnOO1+SEUKyKQDFwMTXRvfcI+8sw2PMhyHbHUfe+b0=; b=Uk6S6ZD+QOiqO+ZAGr3mSV76aYyfWuP0fF/TTbF3AvfMuoil2N+XmriOfEGhiMalpv HlU4U+nqhQDvOtN4TQYWGUK6c6jmFK/vHMcmhNvlR5uCuvIOOoqrsqFTuApmnkPS8DPJ 74vNVu97CcAJT8gfE1bWZXzh1LxKyXFwdVEqfWXtjJpNgEZNmRy8SuJL/pMw9psNX+4g yeCRuYU2BMGLrpI9SZUYC1xVTmJaaIi6Wu03N7SGBbV32diKtCwyLjQDyFvo15KXZuUq z4W0RLxaMdhNU7CdLfNmFMLN6x/X6RhiD8LfRw6nDVJDk9uD8kZzBC2h2aNXv8cQFYRR gSJw== X-Gm-Message-State: APjAAAWlyK/FYXOT/uC+FJ6lUBO6FV/2/KP+74K8c3RMkw4qTNW8TOqS Y76Lq+Cgc7rouzmrkK0fiqNOGgi79CLMB8L8N2E= X-Received: by 2002:a1c:7211:: with SMTP id n17mr17295842wmc.32.1554736619094; Mon, 08 Apr 2019 08:16:59 -0700 (PDT) MIME-Version: 1.0 References: <99dde862-6aee-65a0-8b39-33b8ac10df45@redhat.com> <863a33cf-0a1a-17af-0ea8-42e288f8a1fd@redhat.com> <5c5c169d-3bad-9e34-8c56-bedca3e5ae08@redhat.com> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 8 Apr 2019 17:16:47 +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 5:04 PM Denys Vlasenko wrote: > > On 4/8/19 4:57 PM, Sedat Dilek wrote: > > We have arch/x86/crypto/chacha-avx2-x86_64.S and > > arch/x86/crypto/chacha-avx512vl-x86_64.S: > > > > .rodata.cst32.CTR2BL > > .rodata.cst32.CTR4BL > > .rodata.cst32.CTR2BL > > .rodata.cst32.CTR4BL > > > > ...and in arch/x86/crypto/sha256-avx2-asm.S and > > arch/x86/crypto/sha512-avx2-asm.S: > > > > .rodata.cst32.PSHUFFLE_BYTE_FLIP_MASK > > > > Correct? > > You mean, we have duplicate section names. > > Well, this brings me to my initial response - > "Not sure how exactly this causes the error". > > Duplicate section names are allowed by the linker. > There is nothing wrong with that. > > The warnings you see come from some other tooling, > which does not handle correctly object files with more > than one section with the same name. > > (Having unique names is still preferable, > it helps humans to more easily find where sections come from, > and for potential future --gc-sections optimization). LLD offers these options: --check-sections Check section addresses for overlaps (default) --ignore-data-address-equality lld can break the address equality of data --ignore-function-address-equality lld can break the address equality of functions - Sedat -