yasm-user?

Peter Johnson peter at tortall.net
Fri Apr 11 11:52:39 PDT 2008


On Fri, 11 Apr 2008 07:50:44 -0600, Dave Lee wrote
> 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?

Yes, they're external symbols/labels; yasm treats them as labels in an unknown
segment.  Is this code in the .text segment as well?  If it is, it should work
on a recent snapshot of yasm--support for sym-sym was added after the 0.6.2
release (yes, I really need to get a new release out!).  What version are you
using?

Peter



More information about the yasm-devel mailing list