This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Stub group default for hppa elf
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: amodra at bigpond dot net dot au (Alan Modra)
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 8 Feb 2003 13:01:13 -0500 (EST)
- Subject: Re: Stub group default for hppa elf
> * elf32-hppa.c (group_sections): Don't share a stub section if
> stubs are for a large section.
This is getting closer.
> Index: bfd/elf32-hppa.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elf32-hppa.c,v
> retrieving revision 1.94
> diff -u -p -r1.94 elf32-hppa.c
> --- bfd/elf32-hppa.c 8 Feb 2003 01:10:30 -0000 1.94
> +++ bfd/elf32-hppa.c 8 Feb 2003 08:10:44 -0000
> @@ -2686,12 +2686,15 @@ group_sections (htab, stub_group_size, s
> asection *curr;
> asection *prev;
> bfd_size_type total;
> + bfd_boolean big_sec;
>
> curr = tail;
> if (tail->_cooked_size)
> total = tail->_cooked_size;
> else
> total = tail->_raw_size;
I think it's at this point that we want to reduce stub_group_size
(increase the number of stubs) if !stubs_always_before_branch and
don't have a big section(s?). Doing it in elf32_hppa_size_stubs
is too early.
> + big_sec = total >= stub_group_size;
> +
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)