This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Making a symbol dynamic in executable
- To: Zack Weinberg <zackw at Stanford dot EDU>
- Subject: Making a symbol dynamic in executable
- From: "H . J . Lu" <hjl at valinux dot com>
- Date: Fri, 23 Feb 2001 18:36:10 -0800
- Cc: gcc at gcc dot gnu dot org, binutils at sourceware dot cygnus dot com
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)