yasm-user?
Peter Johnson
peter at tortall.net
Sat Apr 12 12:24:25 PDT 2008
On Sat, 12 Apr 2008, Dave Lee wrote:
> On Fri, Apr 11, 2008 at 12:52 PM, Peter Johnson <peter at tortall.net> wrote:
>> > 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]
>>
>> 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?
>
> I just tried r2063 and I get the same error for those 3 lines. These 3
> lines are in the .text. segment.
Try the attached patch. Turns out I was a bit too conservative in doing
the transformation in question, and didn't allow an extern (_x264_...)
where I should have been. If this works for you, I'll make sure the fix
is in the upcoming release.
Thanks,
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: externdelta.patch
Type: text/x-diff
Size: 832 bytes
Desc:
Url : http://cvs.tortall.net/pipermail/yasm-devel/attachments/20080412/4967081b/attachment.patch
More information about the yasm-devel
mailing list