From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by sourceware.org (Postfix) with ESMTPS id F3D9C3858C53 for ; Fri, 25 Aug 2023 02:15:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F3D9C3858C53 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1c4dda61eb0so294037fac.3 for ; Thu, 24 Aug 2023 19:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1692929743; x=1693534543; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vYXsW5KVU2LC6z20+O5S0+vOvbKPNPFKDt74hP/eCiI=; b=HQk1U+MEjC3eS0ZWiG8r40Rn2O0iW9JFuHQmNRUDEowq4u3nQP+iXZ/dGF/q5J9eMf 5+iGu6KgVfIkZJC6wd/9ryrpNasKmXDy7e0k05uKygmBo72c17IaEaD6EFrwx3J+z26K Ba1lFjDsyYT8rEvaz7dw9GFD+c8yGtpUEx+9ar9O3rRk8/YxHFmoeXvzvzDsiGDqICv5 HBjhRCCYhe5Fzube0lGN8vZ1FKf/U4yBvy8od7BVLB6QXfXsyirwLqmGLDDji5CcobaJ ZkXQ/OQj+TXWNzcE3MhZf7d/88FUy1TwCXWznRilsSvQNKc6+seMGbuUOXiVRIkCtKID K3gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692929743; x=1693534543; h=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=vYXsW5KVU2LC6z20+O5S0+vOvbKPNPFKDt74hP/eCiI=; b=MVfWuLEzRXrM4zuh888NABSU1kY9mRdK8cIUa80+EX2z5XHzYlnBCaf4mQgoxRCgjO H0WjMdlTfVWatDBHLkhZkro0wkxF9Hl1fhoOad3SGSIf+5yAk7BYqQIjXABKvQm4t/G5 FUUyUNnplaYsq9GbC+vncPryZHOOGcSZpCulSEatpqY2vVVvJL8g7U5DzgTLx/R+mvIp far2GxaY2P+XDudqUNxa45NFLk3HeK8AecaLp1zPTlieNbF6D/2Nk3uAErSvYJqy5PWS sfSKUIQem6lM7Gra8QG0wx9qbWRuErtMSScff8oryUTvI5ONp2f9fh6CXBS4ibB9Cqgw YO5Q== X-Gm-Message-State: AOJu0Yy73FcXRdVkmwtGLs2TEv7EG6EDywynWsExYmufZUY/ZZkwX6Ea ofG12alK1cPmkfb8eaT8Ac2D500KBgDXaShXA4jwfg== X-Google-Smtp-Source: AGHT+IHEm1ZDlhp362xu3k1gQ+qT9Kfz+JZYRCehtfoMT2nqJt6OrW/nUg6EiBNTVFnqdeyDYLHywvaQwXij4b2Th1s= X-Received: by 2002:a05:6871:1cf:b0:1be:ccce:7991 with SMTP id q15-20020a05687101cf00b001beccce7991mr1842299oad.13.1692929743418; Thu, 24 Aug 2023 19:15:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nelson Chu Date: Fri, 25 Aug 2023 10:15:32 +0800 Message-ID: Subject: Re: [PATCH] Add basic support for RISC-V 64-bit EFI objects To: Andreas Schwab Cc: Palmer Dabbelt , binutils@sourceware.org Content-Type: multipart/alternative; boundary="000000000000fc8e700603b5ebf2" X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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: --000000000000fc8e700603b5ebf2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 9, 2023 at 4:11=E2=80=AFPM Andreas Schwab via Binutils < binutils@sourceware.org> wrote: > On Aug 08 2023, Palmer Dabbelt wrote: > > > So the idea is to just objcopy an ELF into a PE for EFI? IIUC that's > > generally the way to go for this sort of thing. In Linux we just have a > > PE header manually embedded in a flat binary, but presumably EFI folks > > want to have objcopy support for some reason? > > My main intention is to let BFD recognize EFI objects so that I can > objdump them easily. The support for objcopy comes in naturally, and > some packages do use objcopy to create EFI objects from ELF (on archs > where BFD supports it). > Passed the binutils regression, and the pei-riscv64 testcase is also passed. I don't familiar with the COFF stuff, but at least the support of objdump and objcopy seems to be working, that's what I can check the most currently. Hope this helps before any expert comments appear ;) Thanks Nelson --000000000000fc8e700603b5ebf2--