Fix minor typos introduced while cleaning up the previous patch.
This commit is contained in:
parent
2eb429af04
commit
f273939b8e
1 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ static unsigned long elf_hppa_relocate_insn
|
||||||
long, unsigned long, unsigned long, unsigned long));
|
long, unsigned long, unsigned long, unsigned long));
|
||||||
|
|
||||||
static boolean elf_hppa_add_symbol_hook
|
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 *));
|
const char **, flagword *, asection **, bfd_vma *));
|
||||||
|
|
||||||
static boolean elf_hppa_final_link
|
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. */
|
/* Make sure we've got ourselves a suitable __gp value. */
|
||||||
if (!info->relocateable)
|
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;
|
struct elf_link_hash_entry *gp;
|
||||||
bfd_vma gp_val = 0;
|
bfd_vma gp_val = 0;
|
||||||
asection *os;
|
asection *os;
|
||||||
|
@ -803,8 +803,8 @@ elf_hppa_final_link (abfd, info)
|
||||||
gp_val = min_short_vma + 0x2000;
|
gp_val = min_short_vma + 0x2000;
|
||||||
|
|
||||||
/* If we're addressing stuff past the end, adjust back. */
|
/* If we're addressing stuff past the end, adjust back. */
|
||||||
if (gp_val > max_vma)
|
if (gp_val > max_short_vma)
|
||||||
gp_val = max_vma - 0x2000 + 8;
|
gp_val = max_short_vma - 0x2000 + 8;
|
||||||
|
|
||||||
/* If there was no __gp symbol, create one. */
|
/* If there was no __gp symbol, create one. */
|
||||||
if (!gp)
|
if (!gp)
|
||||||
|
|
Loading…
Add table
Reference in a new issue