* elf32-hppa.c (elf32_hppa_size_stubs): Set the size of the stub

section if we get an error.
This commit is contained in:
Jeff Law 1995-06-18 03:39:23 +00:00
parent 9a6880571c
commit 9fe4fade31
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,8 @@
Sat Jun 17 09:40:44 1995 Jeff Law (law@snake.cs.utah.edu)
* elf32-hppa.c (elf32_hppa_size_stubs): Set the size of the stub
section if we get an error.
* elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Don't mess
with the operands of an R_PARISC_DPREL21L relocation if the insn
is not "addil <symbol>,%r27".

View File

@ -2989,6 +2989,10 @@ error_return:
elf32_hppa_hash_table(link_info)->args_hash_table = NULL;
free (args_hash_table);
}
/* Set the size of the stub section to zero since we're never going
to create them. Avoids losing when we try to get its contents
too. */
bfd_set_section_size (stub_bfd, stub_sec, 0);
return false;
}