projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for gdb.xml/tdesc-regs.exp.
[deliverable/binutils-gdb.git]
/
bfd
/
elfxx-ia64.c
diff --git
a/bfd/elfxx-ia64.c
b/bfd/elfxx-ia64.c
index 97b67e693120b951c3e0fb38977d16e0101a6e4a..b2e55df2b1fbfdf6e6e4cb2859a840d2c6940cd7 100644
(file)
--- a/
bfd/elfxx-ia64.c
+++ b/
bfd/elfxx-ia64.c
@@
-1,5
+1,5
@@
/* IA-64 support for 64-bit ELF
/* IA-64 support for 64-bit ELF
- Copyright (C) 1998-20
18
Free Software Foundation, Inc.
+ Copyright (C) 1998-20
20
Free Software Foundation, Inc.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of BFD, the Binary File Descriptor library.
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
This file is part of BFD, the Binary File Descriptor library.
@@
-27,7
+27,6
@@
#include "elf/ia64.h"
#include "objalloc.h"
#include "hashtab.h"
#include "elf/ia64.h"
#include "objalloc.h"
#include "hashtab.h"
-#include "bfd_stdint.h"
#include "elfxx-ia64.h"
/* THE RULES for all the stuff the linker creates --
#include "elfxx-ia64.h"
/* THE RULES for all the stuff the linker creates --
@@
-196,12
+195,12
@@
static unsigned char elf_code_to_howto_index[R_IA64_MAX_RELOC_CODE + 1];
reloc_howto_type *
ia64_elf_lookup_howto (unsigned int rtype)
{
reloc_howto_type *
ia64_elf_lookup_howto (unsigned int rtype)
{
- static
int inited = 0
;
+ static
bfd_boolean inited = FALSE
;
int i;
if (!inited)
{
int i;
if (!inited)
{
- inited =
1
;
+ inited =
TRUE
;
memset (elf_code_to_howto_index, 0xff, sizeof (elf_code_to_howto_index));
for (i = 0; i < NELEMS (ia64_howto_table); ++i)
memset (elf_code_to_howto_index, 0xff, sizeof (elf_code_to_howto_index));
for (i = 0; i < NELEMS (ia64_howto_table); ++i)
@@
-209,15
+208,15
@@
ia64_elf_lookup_howto (unsigned int rtype)
}
if (rtype > R_IA64_MAX_RELOC_CODE)
}
if (rtype > R_IA64_MAX_RELOC_CODE)
- return
0
;
+ return
NULL
;
i = elf_code_to_howto_index[rtype];
if (i >= NELEMS (ia64_howto_table))
i = elf_code_to_howto_index[rtype];
if (i >= NELEMS (ia64_howto_table))
- return
0
;
+ return
NULL
;
return ia64_howto_table + i;
}
return ia64_howto_table + i;
}
-reloc_howto_type*
-ia64_elf_reloc_type_lookup (bfd *abfd
ATTRIBUTE_UNUSED
,
+reloc_howto_type
*
+ia64_elf_reloc_type_lookup (bfd *abfd,
bfd_reloc_code_real_type bfd_code)
{
unsigned int rtype;
bfd_reloc_code_real_type bfd_code)
{
unsigned int rtype;
@@
-320,7
+319,12
@@
ia64_elf_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
case BFD_RELOC_IA64_DTPREL64LSB: rtype = R_IA64_DTPREL64LSB; break;
case BFD_RELOC_IA64_LTOFF_DTPREL22: rtype = R_IA64_LTOFF_DTPREL22; break;
case BFD_RELOC_IA64_DTPREL64LSB: rtype = R_IA64_DTPREL64LSB; break;
case BFD_RELOC_IA64_LTOFF_DTPREL22: rtype = R_IA64_LTOFF_DTPREL22; break;
- default: return 0;
+ default:
+ /* xgettext:c-format */
+ _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
+ abfd, (int) bfd_code);
+ bfd_set_error (bfd_error_bad_value);
+ return NULL;
}
return ia64_elf_lookup_howto (rtype);
}
}
return ia64_elf_lookup_howto (rtype);
}
This page took
0.025308 seconds
and
4
git commands to generate.