Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #89508

Re: Functions and Global Variables defined in Libraries

Newsgroups comp.lang.c++
Date 2023-03-07 04:46 -0800
References <018b2deb-f52f-4c26-8505-17a836dbe473n@googlegroups.com>
Message-ID <07adcaef-e974-4eae-b421-792377d5fb83n@googlegroups.com> (permalink)
Subject Re: Functions and Global Variables defined in Libraries
From Öö Tiib <ootiib@hot.ee>

Show all headers | View raw


On Tuesday, 7 March 2023 at 13:50:01 UTC+2, Frederick Virchanza Gotham wrote:
> 
> I've been doing some testing and tinkering, and I've found that the strategy of using 'dlopen' at runtime to load a library works fine so long as the undefined symbol is listed under R_X86_64_JUMP_SLO. It doesn't work if the symbol is listed under R_X86_64_GLOB_DAT. 
> 
Then write exported getter function that goes to that R_X86_64_JUMP_SLO. Perhaps
same can be achieved with dlsym(). 

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Functions and Global Variables defined in Libraries Frederick Virchanza Gotham <cauldwell.thomas@gmail.com> - 2023-03-07 03:49 -0800
  Re: Functions and Global Variables defined in Libraries Öö Tiib <ootiib@hot.ee> - 2023-03-07 04:46 -0800
    Re: Functions and Global Variables defined in Libraries Frederick Virchanza Gotham <cauldwell.thomas@gmail.com> - 2023-03-08 08:34 -0800
      Re: Functions and Global Variables defined in Libraries "Alf P. Steinbach" <alf.p.steinbach@gmail.com> - 2023-03-08 18:17 +0100
        Re: Functions and Global Variables defined in Libraries Frederick Virchanza Gotham <cauldwell.thomas@gmail.com> - 2023-03-08 14:46 -0800
          Re: Functions and Global Variables defined in Libraries Frederick Virchanza Gotham <cauldwell.thomas@gmail.com> - 2023-03-09 03:18 -0800

csiph-web