COFF_TYPE on x86_64

Marco Bodrato bodrato at mail.dm.unipi.it
Mon Nov 2 00:02:56 UTC 2020


Ciao Jeremy,

Il 2020-10-02 20:45 Jeremy Drake ha scritto:
> Looking at the ld code, it only generated the thunk in the import 
> library
> if it thought the symbol was a function.  Checking the output of gcc -S
> showed that it added ".def func; .scl 2; .type 32; .endef" to 
> functions,
> and inserting that into the assembly functions caused ld to generate 
> the
> thunks, which solved the crash.  When I started to investigate how to
> integrate generating that in the GMP build system, I came across 
> existing
> code that did exactly that, but only on 32-bit x86 not x86_64.  The 
> patch
> I sent copied the necessary parts of that to the x86_64 path.

Can you test if the latest available snapshot is working in your 
environment?

You can download it at:
https://gmplib.org/download/snapshot/gmp-6.2/gmp-6.2.0-20201101220635.tar.zst

Do you know if this might be needed also for mingw running on ARM cpus?

Ĝis,
m


More information about the gmp-bugs mailing list