FreeBSD arm EABI5 documentation?

Ian Lepore ian at freebsd.org
Wed Jul 10 15:41:35 UTC 2019


On Wed, 2019-07-10 at 15:19 +0000, adr wrote:
> Hello,
> 
> I'm having problems porting an assembly project to freebsd.
> I suspect the key is in the C stack alignment (8 bytes?)
> when arguments are passed by the stack to c functions.
> 
> Before messing all up I would appreciate some pointing to
> documentation.
> 
> By the way, I installed gcc8 and after a reboot, ports I've compiled
> starting complaining about ld unable to link to non PIC code. It is
> like
> ldconfig get screwed after installing gcc...
> 
> Please forgive me if I sound completely out of place. In fact, I am.
> 
> Regards,
> adr.
> 

Stack alignment requirement is 8 bytes.  The full EABI spec is here:

https://static.docs.arm.com/ihi0042/g/aapcs32.pdf

I can't help with the gcc thing, I've only used clang from base for
compiling proprietary code.

-- Ian



More information about the freebsd-arm mailing list