Build for arm64? segfaults
Created by: shantigilbert
I am trying to compile a version for Amlogic devices using AARCH64 I added a platform
else ifeq ($(platform), amlogic64)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
LDFLAGS := -lpthread -lm -ldl
PLATFLAGS += -DARM
SHARED := -shared -Wl,--version-script=$(CORE_DIR)/libretro/link.T -Wl,--as-needed -Wl,--no-undefined
which is basically the RPI platform minus the -marm
declaration, although it compiles fine I get this error:
------------------------------------------------------------------------------------
P-UAE 2.6.1
Git Commit: 0186c1b16f7181ffa02d73e6920d3180ce457c46
Build date: Jan 4 2020 14:53:17
------------------------------------------------------------------------------------
Copyright 1995-2002 Bernd Schmidt
1999-2013 Toni Wilen
2003-2007 Richard Drummond
2006-2013 Mustafa 'GnoStiC' Tufan
See the source for a full list of contributors.
This is free software; see the file COPYING for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
------------------------------------------------------------------------------------
Opening cfgfile '/storage/roms/amiga//puae_libretro.uae': OK
Known ROM 'KS ROM v1.3 (A500,A1000,A2000)' loaded
CPU cycleunit: 256 (0.500)
Building CPU table for configuration: 68000 prefetch and cycle-exact 24-bit
1883 CPU functions
Building CPU, 44316 opcodes (0 -1 1)
CPU=68000, FPU=0, MMU=0, JIT=CPU=0.
CPU cycleunit: 256 (0.500)
Reset at 00000000. Chipset mask = 00000000
00000000 2048K/4 = 512K Chip memory
00200000 8192K/0 = 8192K <none>
00A00000 2048K/0 = 2048K CIA
00C00000 512K/1 = 512K Slow memory
00C80000 1024K/0 = 1024K Custom chipset
00D80000 256K/0 = 256K <none>
00DC0000 64K/0 = 64K Battery backed up clock (none)
00DD0000 64K/0 = 64K <none>
00DE0000 128K/0 = 128K Custom chipset
00E00000 512K/2 = 256K Kickstart ROM (C4F0F55F)
=KS ROM v1.3 (A500,A1000,A2000) rev 34.5 (256k) [315093-02]
00E80000 64K/0 = 64K Autoconfig
00E90000 960K/0 = 960K <none>
00F80000 512K/2 = 256K Kickstart ROM (C4F0F55F)
=KS ROM v1.3 (A500,A1000,A2000) rev 34.5 (256k) [315093-02]
PAL mode V=49.9201Hz H=15625.0881Hz (227x312+1) IDX=10 (PAL) D=0 RTG=0/0
[INFO] [Environ]: SET_GEOMETRY.
hardreset, memory cleared
Segmentation fault
I am using the latest 2e40c2
What is the correct way to compile it for AARCH64?