liboil success

Robert J. Hansen rjhansen at cs.uiowa.edu
Wed Dec 6 22:40:49 PST 2006


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!




More information about the macports-users mailing list