From e83fc891118e5e5660ccca000040e33b0a0a3080 Mon Sep 17 00:00:00 2001 From: bl0v3 Date: Tue, 16 Jul 2024 16:00:46 +0200 Subject: [PATCH] nixos/binfmt: added s390x option type via magic attributes --- nixos/modules/system/boot/binfmt.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix index 1d702442f7f6..a0ef92c0505f 100644 --- a/nixos/modules/system/boot/binfmt.nix +++ b/nixos/modules/system/boot/binfmt.nix @@ -141,6 +141,10 @@ let magicOrExtension = ''\x00asm''; mask = ''\xff\xff\xff\xff''; }; + s390x-linux = { + magicOrExtension = ''\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x16''; + mask = ''\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff''; + }; x86_64-windows.magicOrExtension = "MZ"; i686-windows.magicOrExtension = "MZ"; };