projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move C-related declarations to compile-c.h
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-mcore.c
diff --git
a/bfd/elf32-mcore.c
b/bfd/elf32-mcore.c
index 9334b1d75a0ef35e6878bb5af93c003b0ad060ba..a88acae5c5095afa42e7310a5527d4ea45ac7109 100644
(file)
--- a/
bfd/elf32-mcore.c
+++ b/
bfd/elf32-mcore.c
@@
-97,10
+97,9
@@
mcore_elf_unsupported_reloc (bfd * abfd,
BFD_ASSERT (reloc_entry->howto != (reloc_howto_type *)0);
/* xgettext:c-format */
BFD_ASSERT (reloc_entry->howto != (reloc_howto_type *)0);
/* xgettext:c-format */
- _bfd_error_handler (_("%
B: Relocation %s (%d) is not currently supported.\n
"),
+ _bfd_error_handler (_("%
pB: %s unsupported
"),
abfd,
abfd,
- reloc_entry->howto->name,
- reloc_entry->howto->type);
+ reloc_entry->howto->name);
return bfd_reloc_notsupported;
}
return bfd_reloc_notsupported;
}
@@
-337,8
+336,8
@@
mcore_elf_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
/* Set the howto pointer for a RCE ELF reloc. */
/* Set the howto pointer for a RCE ELF reloc. */
-static
void
-mcore_elf_info_to_howto (bfd * abfd
ATTRIBUTE_UNUSED
,
+static
bfd_boolean
+mcore_elf_info_to_howto (bfd * abfd,
arelent * cache_ptr,
Elf_Internal_Rela * dst)
{
arelent * cache_ptr,
Elf_Internal_Rela * dst)
{
@@
-352,13
+351,14
@@
mcore_elf_info_to_howto (bfd * abfd ATTRIBUTE_UNUSED,
if (r_type >= R_MCORE_max)
{
/* xgettext:c-format */
if (r_type >= R_MCORE_max)
{
/* xgettext:c-format */
- _bfd_error_handler (_("%
B: unrecognised MCore reloc number: %d
"),
+ _bfd_error_handler (_("%
pB: unsupported relocation type %#x
"),
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
abfd, r_type);
bfd_set_error (bfd_error_bad_value);
- r
_type = R_MCORE_NON
E;
+ r
eturn FALS
E;
}
cache_ptr->howto = mcore_elf_howto_table [r_type];
}
cache_ptr->howto = mcore_elf_howto_table [r_type];
+ return TRUE;
}
\f
/* The RELOCATE_SECTION function is called by the ELF backend linker
}
\f
/* The RELOCATE_SECTION function is called by the ELF backend linker
@@
-408,7
+408,7
@@
mcore_elf_relocate_section (bfd * output_bfd,
#ifdef DEBUG
_bfd_error_handler
#ifdef DEBUG
_bfd_error_handler
- ("mcore_elf_relocate_section called for %
B section %
A, %u relocations%s",
+ ("mcore_elf_relocate_section called for %
pB section %p
A, %u relocations%s",
input_bfd,
input_section,
input_section->reloc_count,
input_bfd,
input_section,
input_section->reloc_count,
@@
-437,7
+437,7
@@
mcore_elf_relocate_section (bfd * output_bfd,
|| ! mcore_elf_howto_table [(int)r_type])
{
/* xgettext:c-format */
|| ! mcore_elf_howto_table [(int)r_type])
{
/* xgettext:c-format */
- _bfd_error_handler (_("%
B: Unknown relocation type %d\n
"),
+ _bfd_error_handler (_("%
pB: unsupported relocation type %#x
"),
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);
input_bfd, (int) r_type);
bfd_set_error (bfd_error_bad_value);
@@
-452,10
+452,9
@@
mcore_elf_relocate_section (bfd * output_bfd,
if (howto->special_function == mcore_elf_unsupported_reloc)
{
/* xgettext:c-format */
if (howto->special_function == mcore_elf_unsupported_reloc)
{
/* xgettext:c-format */
- _bfd_error_handler (_("%
B: Relocation %s (%d) is not currently supported.\n
"),
+ _bfd_error_handler (_("%
pB: %s unsupported
"),
input_bfd,
input_bfd,
- howto->name,
- (int)r_type);
+ howto->name);
bfd_set_error (bfd_error_bad_value);
ret = FALSE;
bfd_set_error (bfd_error_bad_value);
ret = FALSE;
This page took
0.024043 seconds
and
4
git commands to generate.