From b67e7fe0f9f9b0f6c4386a0eccba83178098438c Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Wed, 1 Jan 2014 17:29:23 +0000 Subject: [AArch64] Define BE loader name. --- ports/sysdeps/unix/sysv/linux/aarch64/Makefile | 15 +++++++++++++++ ports/sysdeps/unix/sysv/linux/aarch64/ldconfig.h | 1 + 2 files changed, 16 insertions(+) (limited to 'ports/sysdeps/unix/sysv/linux') diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/Makefile b/ports/sysdeps/unix/sysv/linux/aarch64/Makefile index 8a3d76be69..d3f1603359 100644 --- a/ports/sysdeps/unix/sysv/linux/aarch64/Makefile +++ b/ports/sysdeps/unix/sysv/linux/aarch64/Makefile @@ -22,3 +22,18 @@ endif ifeq ($(subdir),stdlib) gen-as-const-headers += ucontext_i.sym endif + +abi-variants := lp64 +abi-variants += lp64_be + +ifeq (,$(filter $(default-abi),$(abi-variants))) +Unknown ABI, must be one of $(abi-variants) +endif + +abi-lp64-options := -U__AARCH64EB__ +abi-lp64-condition := !defined __AARCH64EB__ +abi-lp64-ld-soname := ld-linux-aarch64.so.1 + +abi-lp64_be-options := -D__AARCH6464EB__ +abi-lp64_be-condition := defined __AARCH64EB__ +abi-lp64_be-ld-soname := ld-linux-aarch64_be.so.1 diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/ldconfig.h b/ports/sysdeps/unix/sysv/linux/aarch64/ldconfig.h index 10be19768b..b0e6b6a2ff 100644 --- a/ports/sysdeps/unix/sysv/linux/aarch64/ldconfig.h +++ b/ports/sysdeps/unix/sysv/linux/aarch64/ldconfig.h @@ -20,6 +20,7 @@ #define SYSDEP_KNOWN_INTERPRETER_NAMES \ { "/lib/ld-linux-aarch64.so.1", FLAG_ELF_LIBC6 }, \ + { "/lib/ld-linux-aarch64_be.so.1", FLAG_ELF_LIBC6 }, \ { "/lib/ld-linux.so.3", FLAG_ELF_LIBC6 }, \ { "/lib/ld-linux-armhf.so.3", FLAG_ELF_LIBC6 }, #define SYSDEP_KNOWN_LIBRARY_NAMES \ -- cgit 1.4.1