diff options
author | Ken Raeburn <raeburn@cygnus> | 1993-06-22 03:07:39 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1993-06-22 03:07:39 +0000 |
commit | ab00002f15034d7f3f1624e5734cfd071e3b79d4 (patch) | |
tree | aab6c1d365fb84922f3fcc8cac7ec934b564ef2a /bfd | |
parent | 268f94aca3f9a46f0469dd521fac0bfb3e66fe75 (diff) | |
download | gdb-ab00002f15034d7f3f1624e5734cfd071e3b79d4.zip gdb-ab00002f15034d7f3f1624e5734cfd071e3b79d4.tar.gz gdb-ab00002f15034d7f3f1624e5734cfd071e3b79d4.tar.bz2 |
Use new size-independent elf internal data structures.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/elf32-hppa.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/bfd/elf32-hppa.c b/bfd/elf32-hppa.c index 65940dc..afc4011 100644 --- a/bfd/elf32-hppa.c +++ b/bfd/elf32-hppa.c @@ -45,7 +45,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ */ #include "elf32-hppa.h" -#include "libhppa.h" +/*#include "libhppa.h"*/ +#define BYTES_IN_WORD 4 #include "aout/aout64.h" /* ELF/PA relocation howto entries */ @@ -1294,8 +1295,8 @@ DEFUN (hppa_elf_reloc, (abfd, reloc_entry, symbol_in, data, input_section, outpu if (global_symbol == (asymbol *) NULL) { - struct elf32_backend_data *bed - = (struct elf32_backend_data *) abfd->xvec->backend_data; + struct elf_backend_data *bed + = (struct elf_backend_data *) abfd->xvec->backend_data; if (bed && bed->global_sym) { @@ -2229,13 +2230,13 @@ hppa_elf_build_arg_reloc_stub (abfd, output_bfd, reloc_entry, stub_types) if (!stub_desc->stub_contents) { stub_desc->allocated_size = STUB_BUFFER_INCR; - stub_desc->stub_contents = (char *) malloc (STUB_BUFFER_INCR); + stub_desc->stub_contents = (char *) xmalloc (STUB_BUFFER_INCR); } else if ((stub_desc->allocated_size - stub_desc->real_size) < STUB_MAX_SIZE) { stub_desc->allocated_size = stub_desc->allocated_size + STUB_BUFFER_INCR; - stub_desc->stub_contents = (char *) realloc (stub_desc->stub_contents, - stub_desc->allocated_size); + stub_desc->stub_contents = (char *) xrealloc (stub_desc->stub_contents, + stub_desc->allocated_size); } stub_desc->stub_secp = (int *) (stub_desc->stub_contents + stub_desc->real_size); |