Making a symbol dynamic in executable
H . J . Lu
hjl@valinux.com
Fri Feb 23 18:37:00 GMT 2001
On Fri, Feb 23, 2001 at 06:16:01PM -0800, Zack Weinberg wrote:
>
> That implies, to me, that there might be a way to force just one
> symbol into the dynamic symbol table. I know very little about this.
> Worst case (in ELF), couldn't we bodge an entry into .dynsym by hand?
>
Funny you asked. The short answer is no. But we did get a request to add
STV_EXPORT to the ELF visibility in gABI. Right now, we have STV_DEFAULT,
STV_INTERNAL, STV_HIDDEN and STV_PROTECTED. STV_EXPORT does exactly what
you were asking for. If I remembered right, it came from some C++ compiler
people :-).
I think we asked for more info on it and also we have very limited bits
left in st_other. Many people want to use them for different purposes.
--
H.J. Lu (hjl@valinux.com)
More information about the Binutils
mailing list