This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How to reclaim .rela.dyn entries for symbols that become hidden?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Carlos O'Donell <carlos at systemhalted dot org>
- Cc: binutils at sources dot redhat dot com, Randolph Chung <tausq at debian dot org>,John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
- Date: Thu, 30 Jun 2005 13:30:57 -0400
- Subject: Re: How to reclaim .rela.dyn entries for symbols that become hidden?
- References: <20050630165918.GG5269@systemhalted.org>
On Thu, Jun 30, 2005 at 12:59:22PM -0400, Carlos O'Donell wrote:
> The four R_PARISC_NONE entries seem to come from somewhere? There are
> infact 4 hidden symbols. In check_relocs they are not hidden, but space
> is *not* allocated to them. However, allocate_dynrelocs does eventually
> see they are dynamic and records that (bfd_elf_link_record_dynamic_symbol).
> Does this call have any side effects that I might not realize?
> In relocate_section though the visibility is hidden.
No, it shouldn't have extra side effects.
> Are these hidden symbols the cuprits of the extra relocs in .rela.dyn,
> or should I be looking elsewhere?
Somewere, you're allocating the space for them. Probably this means
that you're counting things incorrectly, or too early. Is
allocate_dynrelocs allocating space for them despite the fact that they
are hidden? If not, where's it come from?
--
Daniel Jacobowitz
CodeSourcery, LLC