[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 21:52:09 PDT 2017


https://bugzilla.nasm.us/show_bug.cgi?id=3392408

--- Comment #9 from H. Peter Anvin <hpa at zytor.com> ---
More information: Xcode as seems to generate two relocations for these types of
constructs:

One X86_64_RELOC_UNSIGNED followed (preceded, really, since Mach-O lists the
symbols in reverse order) by an X86_64_RELOC_SUBTRACTOR, both with Target = 0,
and PCRelative = 0.  In some cases it seems to want to point things at the
symbol involved, in order cases it uses non-external (section-based)
relocations with a target of 0.

This would probably be easy enough to make happen, if this does indeed solve
the problem.  It seems a bit silly, but might be a requirement due to the MacOS
X dead code stripping feature.  Once again, it would be really good to know
what the actual requirements look like.

-- 
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