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: Mon, 10 Feb 2003 21:26:00 -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 and Alan's last patch resolve the overflow of the stub group
section when collecting forward and backwards branches when linking
many small C++ sections. Thus, I am reverting my previous change.
Tested with a build of Qt.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
2003-02-10 John Daivid Anglin <dave.anglin@nrc-cnrc.gc.ca>
* hppaelf.em (group_size): Change default back to 1.
Index: emultempl/hppaelf.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/hppaelf.em,v
retrieving revision 1.25
diff -u -3 -p -r1.25 hppaelf.em
--- emultempl/hppaelf.em 7 Feb 2003 15:55:49 -0000 1.25
+++ emultempl/hppaelf.em 11 Feb 2003 02:09:08 -0000
@@ -50,7 +50,7 @@ static int need_laying_out = 0;
/* Maximum size of a group of input sections that can be handled by
one stub section. A value of +/-1 indicates the bfd back-end
should use a suitable default size. */
-static bfd_signed_vma group_size = -1;
+static bfd_signed_vma group_size = 1;
/* Stops the linker merging .text sections on a relocatable link,
and adds millicode library to the list of input files. */