[Nasm-bugs] [Bug 3392780] error: expression is not simple or relocatable from %pragma macho subsections_via_symbols

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Mon Nov 21 12:17:02 PST 2022


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

H. Peter Anvin <hpa at zytor.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
           Priority|Medium                      |MediumLow

--- Comment #4 from H. Peter Anvin <hpa at zytor.com> ---
subsection_via_symbols isn't just a matter of setting a bit in the header; it
*also* means that NASM needs to treat each subsection as a separate assembly
section for which offsets between two sections aren't knowable at assembly
time.

NASM unfortunately does not have support for taking the difference between
symbols in different sections, even if the object format supports it (few do,
but I believe MachO64 might be an exception.)

This would be a good enhancement, but it requires a *lot* of infrastructure
work.

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


More information about the Nasm-bugs mailing list