projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[gdb/testsuite] Add PR number to KFAIL in gdb.opt/inline-cmds.exp
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-mt.c
diff --git
a/bfd/elf32-mt.c
b/bfd/elf32-mt.c
index efaaf6880b003052c6b812980350b5cf4c3f6d07..389f0e183a0d2abe625218f882acaa0e1404aad1 100644
(file)
--- a/
bfd/elf32-mt.c
+++ b/
bfd/elf32-mt.c
@@
-1,5
+1,5
@@
/* Morpho Technologies MT specific support for 32-bit ELF
/* Morpho Technologies MT specific support for 32-bit ELF
- Copyright (C) 2001-20
18
Free Software Foundation, Inc.
+ Copyright (C) 2001-20
20
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.
@@
-28,7
+28,7
@@
static reloc_howto_type * mt_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type);
static reloc_howto_type * mt_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type);
-static
void
mt_info_to_howto_rela
+static
bfd_boolean
mt_info_to_howto_rela
(bfd *, arelent *, Elf_Internal_Rela *);
static bfd_reloc_status_type mt_elf_relocate_hi16
(bfd *, arelent *, Elf_Internal_Rela *);
static bfd_reloc_status_type mt_elf_relocate_hi16
@@
-227,10
+227,10
@@
mt_elf_relocate_hi16
/* Set the howto pointer for a MT ELF reloc. */
/* Set the howto pointer for a MT ELF reloc. */
-static
void
-mt_info_to_howto_rela (bfd *abfd,
- arelent *cache_ptr,
- Elf_Internal_Rela *dst)
+static
bfd_boolean
+mt_info_to_howto_rela (bfd *
abfd,
+ arelent *
cache_ptr,
+ Elf_Internal_Rela *
dst)
{
unsigned int r_type;
{
unsigned int r_type;
@@
-240,9
+240,11
@@
mt_info_to_howto_rela (bfd *abfd,
/* xgettext:c-format */
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
abfd, r_type);
/* xgettext:c-format */
_bfd_error_handler (_("%pB: unsupported relocation type %#x"),
abfd, r_type);
- r_type = 0;
+ bfd_set_error (bfd_error_bad_value);
+ return FALSE;
}
cache_ptr->howto = & mt_elf_howto_table [r_type];
}
cache_ptr->howto = & mt_elf_howto_table [r_type];
+ return TRUE;
}
/* Perform a single relocation. By default we use the standard BFD
}
/* Perform a single relocation. By default we use the standard BFD
@@
-344,7
+346,7
@@
mt_elf_relocate_section
name = bfd_elf_string_from_elf_section
(input_bfd, symtab_hdr->sh_link, sym->st_name);
name = bfd_elf_string_from_elf_section
(input_bfd, symtab_hdr->sh_link, sym->st_name);
- name =
(name == NULL) ? bfd_section_name (input_bfd,
sec) : name;
+ name =
name == NULL ? bfd_section_name (
sec) : name;
}
else
{
}
else
{
This page took
0.02495 seconds
and
4
git commands to generate.