* elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for

stubs if !stubs_always_before_branch.
This commit is contained in:
Alan Modra 2003-02-08 01:10:30 +00:00
parent e1c1c0f6a0
commit acc990f282
2 changed files with 31 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2003-02-08 Alan Modra <amodra@bigpond.net.au>
* elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
stubs if !stubs_always_before_branch.
2003-02-07 Nick Clifton <nickc@redhat.com>
* elf.c (swap_out_syms): Generate an error message if an
@ -8,7 +13,6 @@
* elf64-alpha.c (elf64_alpha_relax_section): Don't crash if
local_got_entries is NULL.
2003-02-06 Andreas Schwab <schwab@suse.de>
* elf-eh-frame.c (get_DW_EH_PE_signed): Define.

View File

@ -1,6 +1,6 @@
/* BFD back-end for HP PA-RISC ELF files.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2001,
2002 Free Software Foundation, Inc.
2002, 2003 Free Software Foundation, Inc.
Original code by
Center for Software Science
@ -2901,12 +2901,23 @@ elf32_hppa_size_stubs (output_bfd, stub_bfd, info, multi_subspace, group_size,
if (stub_group_size == 1)
{
/* Default values. */
if (stubs_always_before_branch)
{
stub_group_size = 7680000;
if (htab->has_17bit_branch || htab->multi_subspace)
stub_group_size = 240000;
if (htab->has_12bit_branch)
stub_group_size = 7500;
}
else
{
stub_group_size = 6971392;
if (htab->has_17bit_branch || htab->multi_subspace)
stub_group_size = 217856;
if (htab->has_12bit_branch)
stub_group_size = 6808;
}
}
group_sections (htab, stub_group_size, stubs_always_before_branch);