aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-hppa.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-03-02 19:59:03 +0000
committerJeff Law <law@redhat.com>1994-03-02 19:59:03 +0000
commit44fd66228a251a2f66fab7a7412b248d2b6b929a (patch)
treeac8c1c046542ebc254395e7e35665c564b9234bd /bfd/elf32-hppa.c
parent3c5d10c8dfbe06ac621c1807e2944f751c8f2f18 (diff)
downloadgdb-44fd66228a251a2f66fab7a7412b248d2b6b929a.zip
gdb-44fd66228a251a2f66fab7a7412b248d2b6b929a.tar.gz
gdb-44fd66228a251a2f66fab7a7412b248d2b6b929a.tar.bz2
* som.c (hppa_som_gen_reloc_type): Use correct enum type for
field parameter. (bfd_som_set_section_attributes): Use unsigned int rather than unsigned char to avoid GNU-C extensions. (bfd_som_attach_aux_hdr): Return a boolean to indicate success or failure rather than aborting on failure. * som.h (bfd_som_set_section_attributes): Fix prototype to match som.c changes. (bfd_som_attach_aux_hdr): Add prototype. (hppa_som-gen_reloc_type): Likewise. * elf32-hppa.c: Add a couple casts to make HP compiler happy. (hppa_look_for_stubs_in_section): Do not return false on failure until rest of code is ready to handle it. Abort for now.
Diffstat (limited to 'bfd/elf32-hppa.c')
-rw-r--r--bfd/elf32-hppa.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c
index 0c953ed..151a44b 100644
--- a/bfd/elf32-hppa.c
+++ b/bfd/elf32-hppa.c
@@ -2191,7 +2191,8 @@ hppa_elf_build_linker_stub (abfd, output_bfd, link_info, reloc_entry,
old symbol (a function symbol) to the stub (the stub will call
the original function). */
stub_sym = stub_entry->sym;
- reloc_entry->sym_ptr_ptr = bfd_zalloc (abfd, sizeof (asymbol **));
+ reloc_entry->sym_ptr_ptr = (asymbol **) bfd_zalloc (abfd,
+ sizeof (asymbol **));
if (reloc_entry->sym_ptr_ptr == NULL)
{
bfd_set_error (bfd_error_no_memory);
@@ -2229,7 +2230,8 @@ hppa_elf_build_linker_stub (abfd, output_bfd, link_info, reloc_entry,
/* Redirect the original relocation from the old symbol (a function)
to the stub (the stub calls the function). */
- reloc_entry->sym_ptr_ptr = bfd_zalloc (abfd, sizeof (asymbol **));
+ reloc_entry->sym_ptr_ptr = (asymbol **) bfd_zalloc (abfd,
+ sizeof (asymbol **));
if (reloc_entry->sym_ptr_ptr == NULL)
{
bfd_set_error (bfd_error_no_memory);
@@ -2724,7 +2726,7 @@ hppa_look_for_stubs_in_section (stub_bfd, abfd, output_bfd, asec,
if (!abfd->outsymbols)
{
bfd_set_error (bfd_error_no_memory);
- return false;
+ abort ();
}
abfd->symcount = bfd_canonicalize_symtab (abfd, abfd->outsymbols);
}