Why can't statically linked programs have dynamic symbol table?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

I was trying to statically link a program, but sadly that program uses lua
to call the function it defines, which requires the program to export its
symbols.

However, `-rdynamic` does not do the job as it usually does. An SO answer
verifies this, but it does not state the reason:
https://stackoverflow.com/a/53432644/14033810.

I could not think of a reason why a statically linked program cannot have a
dynamic symbol table. Well, their names seem contradictory, but is there
really a reason more solid preventing the linker from doing so?


---
Thanks,
Fengkai



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux