[Nasm-bugs] [Bug 3392408] Self-relative expressions on macho64

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Thu Jun 22 19:30:05 PDT 2017


--- Comment #6 from H. Peter Anvin <hpa at zytor.com> ---
Created attachment 411592
  --> https://bugzilla.nasm.us/attachment.cgi?id=411592&action=edit
Combined C/asm test that shows the problem

I think I have found a test that actually shows this problem.  The problem
appears to be that Mach-O PC-relative relocations are relative to the beginning
of the relocation, not the end.  We generate the correct form for ordinary
PC-relative relocations, but for these segment-relative ones we end up with -4
for the offset.

You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

More information about the Nasm-bugs mailing list