Displaying 1 result from an estimated 1 matches for "myanchorpoint".
Did you mean:
ganchorpoint
2008 Jan 05
0
Assembly on Mac OS needs to be relocatable
...that's why the error message mentions that.)
I don't really know assembly, but based on <http://www.zathras.de/angelweb/blog-intel-assembler-on-mac-os-x.htm
>, I tried the following fix:
In c1_loop:
%ifdef FLAC__PUBLIC_NEEDS_UNDERSCORE
+%ifdef OBJ_FORMAT_macho
+ call .epilog
+.myAnchorPoint:
+ lea edi, [ebx + .myAnchorPoint + _FLAC__crc16_table]
+%else
mov edi, _FLAC__crc16_table
+%endif
%else
mov edi, FLAC__crc16_table
%endif
And then right before the end of the entire function:
ret
+%ifdef OBJ_FORMAT_macho+;; Needed for Mach-O PIC
+.epilog:
+ mov ebx, [esp]
+ r...