[Nasm-bugs] [Bug 3392469] mach-o executables crash with dead striping due to missing object relocations.

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Thu Mar 1 10:45:16 PST 2018


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

--- Comment #3 from Andrew Fish <afish at apple.com> ---
When we use the clang assembler we see the relative offset shrink due to
function B() getting stripped. It has the same "e8 e8 ff ff ff  calll  0x1f7e"
in the object prior to linking.

~/work/Compiler/link>lldb a.out
(lldb) target create "a.out"
Current executable set to 'a.out' (i386).
(lldb) dis -b -n IoReadFifo8
a.out`IoReadFifo8:
a.out[0x1f89] <+0>:  57              pushl  %edi
a.out[0x1f8a] <+1>:  e8 f1 ff ff ff  calll  0x1f80                    ;
SevNoRepIo
a.out[0x1f8f] <+6>:  85 c0           testl  %eax, %eax
a.out[0x1f91] <+8>:  5f              popl   %edi
a.out[0x1f92] <+9>:  c3              retl

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