This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: stabs editing/R_*_NONE question


On Sun, Nov 11, 2001 at 04:18:44PM +1030, Alan Modra wrote:
> On Sat, Nov 10, 2001 at 08:28:57PM -0500, Daniel Jacobowitz wrote:
> > I've been trying to remove stabs for discarded functions
> 
> I suggest doing this in ldemul_finish.  For an example of code that
> changes section sizes well after the normal point, see hppaelf.em:
> hppaelf_layaout_sections_again and elf32-hppa.c:elf32_hppa_size_stubs.

ldemul_finish looks like a more graceful place to do it, but suffers
the same problems.  What I really want to get at is created during
_bfd_elf_final_link.  And I can't really call back from there to
lang_size_sections... well, I could, but it would involve a gross hack,
and I'm not sure it's safe.  It looks like the offsets need to be set
by the call to lang_finish () or we might mis-set the entry point.

I'll try again to get at the information early when I would want to
have it.  Any further suggestions welcome.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]