guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: squash! commencement: binutils-mesboot0: Support ARM.


From: guix-commits
Subject: 03/03: squash! commencement: binutils-mesboot0: Support ARM.
Date: Sun, 21 Feb 2021 13:28:55 -0500 (EST)

janneke pushed a commit to branch wip-arm-bootstrap
in repository guix.

commit e44b6b7eedfed1fd084eb91f92b62c0bb7fd6dd5
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sun Feb 21 16:06:35 2021 +0100

    squash! commencement: binutils-mesboot0: Support ARM.
    
    This allows for binutil-2.14 binaries to run on aarch64-linux.
    
    * gnu/packages/commencement.scm (binutils-mesboot0)[arguments]: Hardcode
    Version5 EABI softfloat for ARM.
---
 gnu/packages/commencement.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index aa1c2a6..5761664 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1225,6 +1225,13 @@ $MES -e '(mescc)' module/mescc.scm -- \"$@\"
                (substitute* "bfd/configure"
                  (("^sed -e '/SRC-POTFILES.*" all)
                   "echo -e 'all:\\n\\ttrue\\n\\ninstall:\\n\\ttrue\\n' > 
po/Makefile\n"))
+               ;; Avoid "cannot execute binary file: Exec format error"
+               ;; on aarch64-linux
+               (substitute* "gas/config/tc-arm.c"
+                 ((" *bfd_set_private_flags \\(stdoutput, flags\\);" all)
+                  (string-append
+                   "    flags = 0x5000200; // Version5 EABI, soft-float ABI\n"
+                   all)))
                #t))
            (replace 'configure         ; needs classic invocation of configure
              (lambda* (#:key configure-flags #:allow-other-keys)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]