projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AArch64: Implement choice between Cortex-A53 erratum workarounds. (PR ld/24373)
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-moxie.c
diff --git
a/bfd/elf32-moxie.c
b/bfd/elf32-moxie.c
index 5337e8804c84a50658eac7b0a31d0a7541db8ffc..9834d8978fd6191d91e06a82afc74d3230acc2fe 100644
(file)
--- a/
bfd/elf32-moxie.c
+++ b/
bfd/elf32-moxie.c
@@
-1,8
+1,8
@@
/* moxie-specific support for 32-bit ELF.
/* moxie-specific support for 32-bit ELF.
- Copyright (C) 2009-201
7
Free Software Foundation, Inc.
+ Copyright (C) 2009-201
9
Free Software Foundation, Inc.
Copied from elf32-fr30.c which is..
Copied from elf32-fr30.c which is..
- Copyright (C) 1998-201
7
Free Software Foundation, Inc.
+ Copyright (C) 1998-201
9
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
This file is part of BFD, the Binary File Descriptor library.
@@
-123,8
+123,8
@@
moxie_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED, const char *r_name)
/* Set the howto pointer for an MOXIE ELF reloc. */
/* Set the howto pointer for an MOXIE ELF reloc. */
-static
void
-moxie_info_to_howto_rela (bfd *abfd
ATTRIBUTE_UNUSED
,
+static
bfd_boolean
+moxie_info_to_howto_rela (bfd *abfd,
arelent *cache_ptr,
Elf_Internal_Rela *dst)
{
arelent *cache_ptr,
Elf_Internal_Rela *dst)
{
@@
-134,10
+134,13
@@
moxie_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED,
if (r_type >= (unsigned int) R_MOXIE_max)
{
/* xgettext:c-format */
if (r_type >= (unsigned int) R_MOXIE_max)
{
/* xgettext:c-format */
- _bfd_error_handler (_("%B: invalid Moxie reloc number: %d"), abfd, r_type);
- r_type = 0;
+ _bfd_error_handler (_("%pB: unsupported relocation type %#x"),
+ abfd, r_type);
+ bfd_set_error (bfd_error_bad_value);
+ return FALSE;
}
cache_ptr->howto = & moxie_elf_howto_table [r_type];
}
cache_ptr->howto = & moxie_elf_howto_table [r_type];
+ return TRUE;
}
\f
/* Perform a single relocation. By default we use the standard BFD
}
\f
/* Perform a single relocation. By default we use the standard BFD
This page took
0.044393 seconds
and
4
git commands to generate.