Forced creation of dynamic sections

Stephen Clarke stephen.clarke@st.com
Thu Nov 13 20:15:00 GMT 2003


Is there a way to force ld to create the dynamic sections,
even if there are no dynamic objects in the link?

I'm building a static main program that has a run-time loader
(a cut down dlopen()-like thing) built into it.  My
loader wants to load a module that contains some undefined
references, and resolve those to symbols in the main
program.  To do this I need to ensure the main program
contains a dynamic symbol table.

I guess I can use tricks with a dummy reference to a dummy
dynamic library to do this, but is there a better way?

Thanks,
Stephen Clarke.



More information about the Binutils mailing list