From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 21D313858C53 for ; Fri, 25 Aug 2023 13:26:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21D313858C53 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-68bed286169so858547b3a.1 for ; Fri, 25 Aug 2023 06:26:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1692970000; x=1693574800; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=88sLyTFBt37tzG0ffk6fzDKp9J/0eg++Z1J3A6L6u94=; b=vC2OSd6r+SaKoEZBu+XCSJa41yZQKMVi0zKxwCaeSmH0af3ZsD/3eilHGZfxtuMU0Q gIarm5L/wUSoHmsD5rdaHwfOewVKnk9cWinDdrAGGgxUKLbtosUZ0dAuLoYD6jV9A3YN +Q2oWIzhfvIj6flmDhHTVZp8G/2z42D0fdO25QkhFmF85ZJFLSxz4FA6xv3MnoxFttAM oKHzNXoNoJ/UeNRwjwQDKL7cqS20EwWGy0I+b/lRe5TFCpHLpVzj9SylkmWT9DtQe9Hd jPYVnAbe/QZ39hWLsb/skNDCtJxR6mh5J7x1YZ8JJ4ZMKNTTDSMPEOfAQGzyrKyISU7S Tp7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692970000; x=1693574800; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=88sLyTFBt37tzG0ffk6fzDKp9J/0eg++Z1J3A6L6u94=; b=Le+TD87eWqNCrzeMEDPUfUyO9x8gS6FWsCaAIRTARh4JuxaVYrEH9pOaYrN4uvaE99 4Je+51qa6DNxX1l1lt86Jh5RL1hXbKIQy0cqi79UWfHuBWXDRvdIodFXmSLpFxnRArwb 1iUPNt2bl5fPW/wLJ32R94Ar7NFR3LjfQ1oDLI5fCK5aR7xAxU4eI0Y7Z2iJaySBoRHm MYac5dxzkALt6YA5jl7L8fySy2ss44Y8aijlFN/eSgZtMVY50uNe7uxO9AmJxTsBDo/b EMv6gDH20RhagnBZIvwlHhcAnt9pP/Bq1T1qaAEIrcELAK2FLfxdLjesadD/Y9Jlc1JT gw6Q== X-Gm-Message-State: AOJu0YzgfasBlXQR7QlZ0SRuDnoTy88UA589F6kc5AMC6+U27zwvkqAZ VTwtNYFa1i3IZHruAdl1E+ngfw== X-Google-Smtp-Source: AGHT+IGQVsLflxZG8FYM7jCImdNLhm9bpPY/nDJSsSprYFFn3u8/v4L3yw4M2Qm2pqd20+P92XPf1A== X-Received: by 2002:a05:6a20:72a2:b0:137:d14d:79ea with SMTP id o34-20020a056a2072a200b00137d14d79eamr23331031pzk.25.1692970000125; Fri, 25 Aug 2023 06:26:40 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id x22-20020a62fb16000000b0064fd4a6b306sm1530191pfm.76.2023.08.25.06.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Aug 2023 06:26:39 -0700 (PDT) Date: Fri, 25 Aug 2023 06:26:39 -0700 (PDT) X-Google-Original-Date: Fri, 25 Aug 2023 06:26:36 PDT (-0700) Subject: Re: [PATCH] Add basic support for RISC-V 64-bit EFI objects In-Reply-To: CC: schwab@suse.de, binutils@sourceware.org From: Palmer Dabbelt To: nelson@rivosinc.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,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: On Thu, 24 Aug 2023 19:15:32 PDT (-0700), nelson@rivosinc.com wrote: > On Wed, Aug 9, 2023 at 4:11 PM 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). OK, that makes sense to me. > 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 ;) So you think it's ready to merge, or did you want to look closer? > > Thanks > Nelson