yasm-user?

Dave Lee davelee.com at gmail.com
Fri Apr 11 06:50:44 PDT 2008


On Fri, Apr 11, 2008 at 3:45 AM, Peter Johnson <peter at tortall.net> wrote:
> What object format are you trying to target?  I suspect macho32?

-f macho. I just tried -f macho32, and I now get undefined symbol
errors on ..gotpc and ..gotoff which is because the conditional
compilation I've seen in this code is always checking for macho, not
macho32.

> What may help is running the code through just the preprocessor to text-expand out the macros and show the actual text being assembled.  This can be done by using the "-e" command line option.

The lines in question are:

 movzx edi, byte [_x264_cabac_range_lps+edi - fakegot + edx]
 movzx ecx, byte [_x264_cabac_transition+ecx - fakegot + edx]
 movzx ecx, byte [_x264_cabac_renorm_shift+0+ecx - fakegot + edx]

fakegot is a label at the start of .text. The _x264* identifiers are
defined as [extern ...] within .text. Are these considered labels?

> So, the next step I think is to run the code through the preproc with -e, and post the line that's giving the error.  Also important to know is both the labels the expression references and what sections they are in (yasm can simplify more effectively if the labels are in the same section).

Thanks for the advice and help.

Dave


More information about the yasm-devel mailing list