[binutils-gdb] Handle "efi-app-riscv64" and similar targets in objcopy.
Nelson Chu
nelsonc1225@sourceware.org
Tue Dec 5 06:43:35 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c53b543736cd3b64adb368b0a575241a257cc003
commit c53b543736cd3b64adb368b0a575241a257cc003
Author: Peter Jones <pjones@redhat.com>
Date: Wed Sep 6 16:01:34 2023 -0400
Handle "efi-app-riscv64" and similar targets in objcopy.
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 <pjones@redhat.com>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Diff:
---
binutils/objcopy.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 6bc84bd9e84..b3c8d0f81ac 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;
}
More information about the Binutils-cvs
mailing list