Hey,

In the linux x86 ABI, it looks like a function returning a union consisting of 
a pointer has a different calling convention than a function returning a 
pointer.

My test program gives me:
returnUnion called with 42

on OS X and

returnUnion called with 134520820
Segmentation fault

on my Linux VM. I think this is why LK isn't working for me :-/

-Eric

Attachment: unions.c
Description: Binary data

_______________________________________________
Etoile-dev mailing list
Etoile-dev@gna.org
https://mail.gna.org/listinfo/etoile-dev

Reply via email to