aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-hppa.h
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-09-01 20:06:15 +0000
committerJeff Law <law@redhat.com>1999-09-01 20:06:15 +0000
commitf273939b8e3b39786d0067fd8270f81af53b4a36 (patch)
tree35387c6a12cedf7a3552ea188fc4c582824076bd /bfd/elf-hppa.h
parent2eb429af04fa553ce4637b8abfcf72c695b05185 (diff)
downloadgdb-f273939b8e3b39786d0067fd8270f81af53b4a36.zip
gdb-f273939b8e3b39786d0067fd8270f81af53b4a36.tar.gz
gdb-f273939b8e3b39786d0067fd8270f81af53b4a36.tar.bz2
Fix minor typos introduced while cleaning up the previous patch.
Diffstat (limited to 'bfd/elf-hppa.h')
-rw-r--r--bfd/elf-hppa.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index c90078d..196a1ac 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -57,7 +57,7 @@ static unsigned long elf_hppa_relocate_insn
long, unsigned long, unsigned long, unsigned long));
static boolean elf_hppa_add_symbol_hook
- PARAMS ((bfd *, struct bfd_link_info *, const Elf_Internal_Sym,
+ PARAMS ((bfd *, struct bfd_link_info *, const Elf_Internal_Sym *,
const char **, flagword *, asection **, bfd_vma *));
static boolean elf_hppa_final_link
@@ -750,7 +750,7 @@ elf_hppa_final_link (abfd, info)
/* Make sure we've got ourselves a suitable __gp value. */
if (!info->relocateable)
{
- bfd_vma min_short_vma = (bfd_vma -1), max_short_vma = 0;
+ bfd_vma min_short_vma = (bfd_vma) -1, max_short_vma = 0;
struct elf_link_hash_entry *gp;
bfd_vma gp_val = 0;
asection *os;
@@ -803,8 +803,8 @@ elf_hppa_final_link (abfd, info)
gp_val = min_short_vma + 0x2000;
/* If we're addressing stuff past the end, adjust back. */
- if (gp_val > max_vma)
- gp_val = max_vma - 0x2000 + 8;
+ if (gp_val > max_short_vma)
+ gp_val = max_short_vma - 0x2000 + 8;
/* If there was no __gp symbol, create one. */
if (!gp)