[Openmcl-devel] resolved problem with ccl on Linux ARM

Timothy Moore moore at bricoworks.com
Wed Feb 24 00:58:27 PST 2016

I was unable to run ccl on an NVidia Tegra running Arch Linux. The program would be killed immediately on startup; I couldn't even start it using gdb. The problem turned out to be that the start of the executable's text segment was mapped to address 0x0  (or at least to a low address), which is reserved in this configuration. I changed the linker script to initialize the beginning of the text segment in the same way that the default script does; I'm happy to report that ccl works very well on this Acer Chromebook now.

I have no idea if the memory map is particular to Arch Linux, or this version of the kernel (3.10.18 arm7l), the ARM version, or what. Here is the /proc/cpuinfo for one (out of four) processor:

processor	: 0
model name	: ARMv7 Processor rev 3 (v7l)
BogoMIPS	: 22.84
Features	: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x3
CPU part	: 0xc0f
CPU revision	: 3

Attached is my fix to the linker script. I don't know if this is sufficiently generic to work for Linux on ARM in general.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: link-script.diff
Type: text/x-diff
Size: 513 bytes
Desc: not available
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20160224/97a8777b/attachment.bin>

More information about the Openmcl-devel mailing list