7 Dec
2006
7 Dec
'06
6:40 a.m.
As it turns out, the bits of half-remembered gas were right. It was a problem with the .balign and .rept statements not being present in the version of gas used by Apple. The fix is fairly simple, although a bit tedious. * All instances of ".balign 16" need to be replaced with ".align 4". * All instances of ".rept 8"/".endr" need to be unrolled into linear statements, since Apple gas doesn't understand .rept. E.g.: .rept 2 .foo .endr ... gets unrolled into .foo .foo Hopefully this problem will get fixed by the liboil guys at freedesktop. If not, then I hope this is useful to the next poor schmuck who gets to wrestle with the problem. Enjoy!