Exceptions across binary boundary

前端 未结 5 1272
生来不讨喜
生来不讨喜 2021-02-07 02:06

I know, this question has been asked quite some times, however I can\'t find a solution for my problem.

I have the following situation:

   A
  / \\
 /            


        
5条回答
  •  情歌与酒
    2021-02-07 02:50

    You may try to compile A, B and C with -rdynamic (at linkage stage)

    The GCC man page tell about -rdynamic:

    Pass the flag -export-dynamic to the ELF linker, on targets that support it. This instructs the linker to add all symbols, not only used ones, to the dynamic symbol table. This option is needed for some uses of "dlopen" or to allow obtaining backtraces from within a program.

提交回复
热议问题