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 944B63858C83 for ; Fri, 21 Apr 2023 12:38:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 944B63858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6a5f6349ec3so845590a34.0 for ; Fri, 21 Apr 2023 05:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682080727; x=1684672727; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0Jr6cidlYhmNxD6Op8RzoayKxKmAEVD2DN+I9DXCBio=; b=kKXhq77mSR5zjB0o8JG8ghC8pTvQO886lvhLyiqKzKxTIHdrTMv0g+i3BY+1D3A3Er DEHpNOFk1d89LcNXxMbcoo6eSCqLjR3/RoguWxFkg0OL1V5kBnT8LYZiDfDop9z301pZ dxJhT8iCPsUDt+iNLj+rCJAkMzNH0xYixzJfLA6Q6M8xleV9rEFMwQMCRVu6it6PYmeo bW7ukZLN1bGnCTfJrBlJ2EP8thFhy+SfYJG5hcs+XJgbJxrGXeLKh026hBMOy0/fR+0c x7KOqIzMj6gnfLeHeM8sOT+BJqCkUNzL6/V7gXgsbAzGmj/RzfuVus7hsOOv/tpQ5sSl UepQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682080727; x=1684672727; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0Jr6cidlYhmNxD6Op8RzoayKxKmAEVD2DN+I9DXCBio=; b=CF1glljIs8ehIK2HdLJe3p+nOKy1ijG2NTeJ+G5MpcR2z4JFOrRz6GBp0puDY3Hzco I9HUtU/XnZhhvFrNNV2Yv4tYOsqsSwVXIC7Er/4ZYcCxt86dORAJy/NK8AQRxegkv3wu RmEEFD7dWMKRMqO7nHUx0JuJrEP2LQwFClaZd1bH+/qePy4zRX6QqK8guFm5O4Q28W/i 6eHISoIgD7WwDM7B/RVnq+YaSjBbO46vfDrwmtMdfbkLzgZ6PQGq0E+5MAHSWUR6uzph kKrK3+778PnJMrC4Y1MVQxPinmmmzXvTyFNdlZjKMV/8j4mlYOfh9QOzwwtUEsHVTsVC ZqpQ== X-Gm-Message-State: AAQBX9dBlgkE0iswM1TSJzfdCtC06OGYKTCGRcDLpxL3ngcNwq5EHd8z vi7fXgJLNX9HaAP0/R9It7zJScevHJl2fyBUfAg= X-Google-Smtp-Source: AKy350YojQMCHjt75+S+eL07haac6cs0wdFCBVPDQOWjuQm0gCLIH92l9QhIyJYH1jBbjL5p7BeO/jTPvNILiIVngn8= X-Received: by 2002:a05:6870:e88a:b0:187:bc38:cfb0 with SMTP id q10-20020a056870e88a00b00187bc38cfb0mr3341853oan.29.1682080726756; Fri, 21 Apr 2023 05:38:46 -0700 (PDT) MIME-Version: 1.0 References: <20230420184220.300862-1-bugaevc@gmail.com> <20230420184220.300862-2-bugaevc@gmail.com> <167de8d8-2598-fc32-c26c-749318d9451b@linaro.org> In-Reply-To: <167de8d8-2598-fc32-c26c-749318d9451b@linaro.org> From: Sergey Bugaev Date: Fri, 21 Apr 2023 15:38:35 +0300 Message-ID: Subject: Re: [VERY RFC PATCH 2/2] hurd: Make it possible to call memcpy very early To: Adhemerval Zanella Netto Cc: "H.J. Lu" , libc-alpha@sourceware.org, bug-hurd@gnu.org, Samuel Thibault , Luca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.6 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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, Apr 21, 2023 at 2:50=E2=80=AFPM Adhemerval Zanella Netto wrote: > It might work if you don't care about a different architecture than x86, > and that's why I added the alias (so each architecture is free to name > its ifunc variant). And the patch was exactly to handle the implicit > created mem* call from compiler, so I think you should take it in > consideration. Yes, sure, I wasn't really suggesting we do that change. My point is, I would like to make the same memcpy callsites both work during early startup and start calling the more efficient implementation once early startup is done -- if that's possible. > And I trying to make reason why you need __mig_memcpy indirection for > MIG. See commit 56010b73e81e2cb1082e418699f98353598fe671 (as pointed out by Samuel yesterday), which references [0]. But that's only relevant for SHARED; for static we could avoid that redirection and call memcpy directly indeed. [0]: https://sourceware.org/pipermail/libc-alpha/2020-November/119575.html Sergey