diff options
author | Alan Modra <amodra@gmail.com> | 2003-02-08 01:10:30 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2003-02-08 01:10:30 +0000 |
commit | acc990f282141b0857da1b22b0fa4b0f7c06c4f5 (patch) | |
tree | f448e881d2b0e86047512b84fdd7577c198fc12f /bfd/elf32-hppa.c | |
parent | e1c1c0f6a0c2b23bdb42f7df46d78261d7a7331e (diff) | |
download | fsf-binutils-gdb-acc990f282141b0857da1b22b0fa4b0f7c06c4f5.zip fsf-binutils-gdb-acc990f282141b0857da1b22b0fa4b0f7c06c4f5.tar.gz fsf-binutils-gdb-acc990f282141b0857da1b22b0fa4b0f7c06c4f5.tar.bz2 |
* elf32-hppa.c (elf32_hppa_size_stubs): Double the size left for
stubs if !stubs_always_before_branch.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r-- | bfd/elf32-hppa.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index 2646f3d..69ead0d 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -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,11 +2901,22 @@ elf32_hppa_size_stubs (output_bfd, stub_bfd, info, multi_subspace, group_size, if (stub_group_size == 1) { /* Default values. */ - 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; + 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); |