diff options
author | kib <kib@FreeBSD.org> | 2015-10-08 17:42:08 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-10-08 17:42:08 +0000 |
commit | b2d840b61f56cbfedd019495716c72ad05e2b46c (patch) | |
tree | 7ec5d2391d1ce937db12fe46445cab4cc4e60e82 /sys/conf/Makefile.arm64 | |
parent | 48b0cbf71b32ca05aa12ce0a6cc627de9cf5b979 (diff) | |
download | FreeBSD-src-b2d840b61f56cbfedd019495716c72ad05e2b46c.zip FreeBSD-src-b2d840b61f56cbfedd019495716c72ad05e2b46c.tar.gz |
Build changes that allow the modules on arm64.
- Move the required kernel compiler flags from Makefile.arm64 to kern.mk.
- Build arm64 modules as PIC; non-PIC relocations in .o for shared object
output cannot be handled.
- Do not try to install aarch64 symlink.
- A hack for arm64 to avoid ld -r stage. See the comment for the explanation.
Some functionality is lost, like ctf handling, but hopefully will be
restored after newer linker is available.
Reviewed by: andrew, emaste
Tested by: andrew (on real hardware)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D3796
Diffstat (limited to 'sys/conf/Makefile.arm64')
-rw-r--r-- | sys/conf/Makefile.arm64 | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/conf/Makefile.arm64 b/sys/conf/Makefile.arm64 index 46c191c..324daa7 100644 --- a/sys/conf/Makefile.arm64 +++ b/sys/conf/Makefile.arm64 @@ -27,12 +27,6 @@ S= ../../.. INCLUDES+= -I$S/contrib/libfdt -# We generally don't want fpu instructions in the kernel. -CFLAGS += -mgeneral-regs-only - -# Reserve x18 for pcpu data -CFLAGS += -ffixed-x18 - .if !empty(DDB_ENABLED) CFLAGS += -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer .endif |