[Nasm-bugs] [Bug 3392498] macho: label changed during code generation

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Fri Aug 17 08:09:10 PDT 2018


--- Comment #5 from zenith432 at users.sourceforge.net ---
sections are split into subsections at non-local symbols so

- jmp across a non-local symbol or to another section needs a relocation and
can't be optimized.
- jmp into the same subsection does not need a relocation and can be optimized.

It is not a bug, just overkill to completely disable jmp optimization.

For comparison with clang...
- arch i386, jmp into same subsection is optimized.
- arch x86_64, jmp into same subsection gets a relocation even though it's not
necessary - and so it not optimized.
So clang is also capricious.

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