View Single Post
Old 05-13-2016, 02:54 PM   #159
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
In armv4 days, there was only one abi.

Try that on your Hello World: -arch=armv4
or whatever your compiler offers that is close.
I did try that, along with -static. It did not work. I will try it after I build the aboriginal rootfs. I was busy with other stuff. Another option: I have a codesourcery arm-linux for bare metal, it looks for _start() instead of main(), and it needs a short assembler preamble to setup interrupt vectors (per the "bare metal arm" link I posted last night). I will probably try that soon too; I prefer working at system-call level anyway, and not (mis)depending on other libraries that will (probably) suffer from version mismatches in the future (both in windoze and linux).

Last edited by geekmaster; 05-13-2016 at 02:57 PM.
geekmaster is offline   Reply With Quote