Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147814431
D16011.id44441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
950 B
Referenced Files
None
Subscribers
None
D16011.id44441.diff
View Options
Index: head/sys/modules/linux64/Makefile
===================================================================
--- head/sys/modules/linux64/Makefile
+++ head/sys/modules/linux64/Makefile
@@ -35,9 +35,16 @@
-Wl,-soname=${VDSO}.so.1,-warn-common -nostdlib \
${.IMPSRC} -o ${.TARGET}
+.if ${MACHINE_CPUARCH} == "aarch64"
+OBJCOPY_TARGET=--output-target elf64-littleaarch64 --binary-architecture aarch64
+.elif ${MACHINE_CPUARCH} == "amd64"
+OBJCOPY_TARGET=--output-target elf64-x86-64 --binary-architecture i386:x86-64
+.else
+.error ${MACHINE_CPUARCH} not yet supported by linux64
+.endif
${VDSO}.so: linux_locore.o
- ${OBJCOPY} --input-target binary --output-target elf64-x86-64 \
- -S -g --binary-architecture i386:x86-64 linux_locore.o ${.TARGET}
+ ${OBJCOPY} --input-target binary ${OBJCOPY_TARGET} -S -g \
+ linux_locore.o ${.TARGET}
strip -N _binary_linux_locore_o_size ${.TARGET}
linux_support.o: assym.inc linux_assym.h
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 14, 9:08 PM (2 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29686356
Default Alt Text
D16011.id44441.diff (950 B)
Attached To
Mode
D16011: Add arm64 target support to linux64 Makefile
Attached
Detach File
Event Timeline
Log In to Comment