From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id DEA6C3858C78 for ; Wed, 6 Sep 2023 20:01:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DEA6C3858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694030507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jvLjNnV7AzfJAcd/bs/rtyoRfmvogvpxVCIo7lG5Rok=; b=BtzL+UCLNUxW5quf0JQjvpcYXakhsJc3IvRusTifx+K5eULp0gFQWg5qqxmHf5CaktEKfq tOZ+T+eXduDMATIXvr6O2m1sI/MN6wh2FJOSf4lUxiRQAehbqsMr1/1IMfBeOE1JOYGY4d 46g+XAZlTtk1R5BJHojVkZe3lX05xeY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-626-3rJuMiuCNymglmIGL6MHIQ-1; Wed, 06 Sep 2023 16:01:46 -0400 X-MC-Unique: 3rJuMiuCNymglmIGL6MHIQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DE3B488DF6C; Wed, 6 Sep 2023 20:01:45 +0000 (UTC) Received: from random.internal.datastacks.com (unknown [10.2.16.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E749412F2CD; Wed, 6 Sep 2023 20:01:45 +0000 (UTC) From: Peter Jones To: binutils@sourceware.org Cc: Andreas Schwab , Peter Jones Subject: [PATCH] Handle "efi-app-riscv64" and similar targets in objcopy. Date: Wed, 6 Sep 2023 16:01:34 -0400 Message-Id: <20230906200134.1033297-2-pjones@redhat.com> In-Reply-To: <20230906200134.1033297-1-pjones@redhat.com> References: <20230906200134.1033297-1-pjones@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,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: This adds the efi target name handling for riscv64 to objcopy. binutils: * binutils/objcopy.c: add riscv64 handling to convert_efi_target() Signed-off-by: Peter Jones --- binutils/objcopy.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 2ce1b07bf7c..b64cbee3dd7 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -5129,6 +5129,11 @@ convert_efi_target (char **targ) /* Change aarch64 to aarch64-little. */ memcpy (pei + 4 + sizeof ("aarch64") - 1, "-little", sizeof ("-little")); } + else if (strcmp (efi + 4, "riscv64") == 0) + { + /* Change riscv64 to riscv64-little. */ + memcpy (pei + 4 + sizeof ("riscv64") - 1, "-little", sizeof ("-little")); + } *targ = pei; return subsys; } -- 2.40.1