alainfrisch/flexdll — pull request #2 by elfmimi (2014-09-13 18:15:56+00:00)
Title: Support generation of jmp thunk table

As I said, I have created a patch to support generation of jmp thunk table. Its purpose is to avoid "target is too far" error on 64-bit platforms. Though, for universality I made it able to be utilized in 32-bit platforms as well.
I wanted to let you know that this is actually possible.

There is one minor flaw that is it will put unneeded symbols in the jmp thunk table. This will increase the size of the binary but that amount is negligible. This can be fixed later.

I suppose this also well accomodates with COMDAT. Because there arise no need to modify the object files at all. But I have not yet tested it.

So, what would you say?