diff mbox series

[4/4] RFC qemu-binfmt-conf.sh: Add MIPS64 o32 ABI

Message ID 20201119161710.1985083-5-f4bug@amsat.org
State New
Headers show
Series linux-user: Support o32 ABI with 64-bit MIPS CPUs | expand

Commit Message

Philippe Mathieu-Daudé Nov. 19, 2020, 4:17 p.m. UTC
... but this is wrong as the same header matches MIPS32 o32 ELFs...

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
checkpatch errors:

 ERROR: line over 90 characters
 #9: FILE: scripts/qemu-binfmt-conf.sh:71:
 +mips64o32el_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00'
 ERROR: line over 90 characters
 #10: FILE: scripts/qemu-binfmt-conf.sh:72:
 +mips64o32el_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
---
 scripts/qemu-binfmt-conf.sh | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Richard Henderson Nov. 19, 2020, 11:14 p.m. UTC | #1
On 11/19/20 8:17 AM, Philippe Mathieu-Daudé wrote:
> ... but this is wrong as the same header matches MIPS32 o32 ELFs...
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---

Yeah, I don't think you'll be able to include this.


r~
diff mbox series

Patch

diff --git a/scripts/qemu-binfmt-conf.sh b/scripts/qemu-binfmt-conf.sh
index 9f1580a91c7..ee86345ff8a 100755
--- a/scripts/qemu-binfmt-conf.sh
+++ b/scripts/qemu-binfmt-conf.sh
@@ -68,6 +68,10 @@  mipsel_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x0
 mipsel_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
 mipsel_family=mips
 
+mips64o32el_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00'
+mips64o32el_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
+mips64o32el_family=mips
+
 mipsn32_magic='\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08'
 mipsn32_mask='\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff'
 mipsn32_family=mips