Hi,

On Mon, Sep 25, 2023 at 05:46:36PM -0500, Nima Hamidi via Gcc wrote:
> Is there any flag that I can pass to gcc to make it generate dynamic symbols 
> for inline functions too? Let’s say I need to lookup an inline function via 
> dlopen and call it. Is there an easy way to achieve this?
> 
You may want to look at options -fkeep-inline-functions and 
-fkeep-static-functions. If you use them inline and static functions will be 
emitted into the object file.  Beware that if __attribute__((always_inline)) is 
used it won't be kept.

Paul




Reply via email to