[haiku-development] Re: ABI version detection

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 25 Oct 2016 13:18:38 +0200

Hi Adrien,

Am 23/10/2016 um 21:52 schrieb Adrien Destugues:

It looks like there are two problems at play here.
[...]
a) Make the _gSharedObjectHaikuABI symbol always global. It is a GLOBAL
when I look at the .o for our glue code, however, it somehows become
local when bundled into zlib. Is there some way to force this symbol to
be exported? Ideally in LD or some system linker script that's used when
linking shared libraries, but I did not find such a file.

b) The alternative is making the runtime_loader accept the symbol even
if it is declared local. It feels a little less clean, but I don't think
it would break anything.

I'd say if there is a symbol called '_gSharedObjectHaikuABI' it doesn't really matter whether is global or local :-)
Since it's already used "in the wild", and we cannot fix everything (even if we manage to fix this particular issue for zlib), this sounds to me like the best approach.

Bye,
   Axel.

Other related posts: