From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id DC2DC3851C33 for ; Sat, 26 Dec 2020 15:37:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DC2DC3851C33 Received: by mail-ot1-x32d.google.com with SMTP id b24so5736843otj.0 for ; Sat, 26 Dec 2020 07:37:39 -0800 (PST) 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:from:date :message-id:subject:to:cc; bh=lkjbmJuyeduiHY4q1Q2Pn6O154TcShHT38kPKGWbfUA=; b=dojqTgOmsDurEOm6xHq/8nbgZEEUxG7upntADXkprlejUXpkKewlI3z2QtDBcdPTq+ 0ZJ/lFm3q8T/p/1//GoPIxGZgEkN5CYiEhIarY4//SVx2MqMAT2c927Wm74LXdAI0ZBL FvmzmrEQS3Wh65t7Klr8FpPGMDpfmJc4SKzHMVxRhZc0UFzN/2tVroRvlhn5kwXgunuK 6KxXP54bqxJrW1qg+aOWv1EQUrW2hrAeV/Uijk9Cap1xS0b2KtNwdniaDCDubxTyf8A8 EIf5EQbtNGEHCfV9zunDw+iOiIp7GGKaQRI98Xv8CJN2PBaHAuw/jBzfrvu+F8+BCNo9 CUXw== X-Gm-Message-State: AOAM532meE+ltykpYeHw6Topqv1gQ7Fa0UyYEdAxo91dfYvxGJasyjua AMEyddAJTp5/8JZ+ot4FFOa5AnioHqPcy/Z80uGkbRoJ X-Google-Smtp-Source: ABdhPJynv1jcVFtpeTcX0l3CCm5H09m39MKG6rqCHbh8zE/vNS7bKHyCo8JbjZkAs/oiQeLpfZPd+XRTmTG2hEoVcKU= X-Received: by 2002:a05:6830:10d2:: with SMTP id z18mr28183549oto.90.1608997058847; Sat, 26 Dec 2020 07:37:38 -0800 (PST) MIME-Version: 1.0 References: <87tuscp45g.fsf@oldenburg2.str.redhat.com> <87mty4p3tm.fsf@oldenburg2.str.redhat.com> <20201224205135.GA3941053@gmail.com> <87czyw1szx.fsf@mid.deneb.enyo.de> In-Reply-To: <87czyw1szx.fsf@mid.deneb.enyo.de> From: "H.J. Lu" Date: Sat, 26 Dec 2020 07:37:02 -0800 Message-ID: Subject: Re: [RFC PATCH 2/2] x86: Alternative implementation To: Florian Weimer Cc: "H.J. Lu via Libc-alpha" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3031.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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-List-Received-Date: Sat, 26 Dec 2020 15:37:41 -0000 On Sat, Dec 26, 2020 at 7:34 AM Florian Weimer wrote: > > * H. J. Lu via Libc-alpha: > > > We need to remove > > > > 000000000040ddd0 0000002f00000005 R_X86_64_COPY > > 000000000040ddd0 __x86_cpu_array@GLIBC_2.33 + 0 > > So the issue is that we initialize __x86_cpu_array in libc.so.6, but > the active copy is actually in the main program? And that copy reloc Yes. > is processed after IFUNC resolvers in libm.so.6 read __x86_cpu_array, > observing zero data there? You mentioned that the current couldn't be used in IFUNC resolver with BIND_NOW. Do you have a testcase? -- H.J.