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/remote-fileio.c: Eliminate custom SIGINT signal handler
[deliverable/binutils-gdb.git]
/
bfd
/
elf64-mmix.c
diff --git
a/bfd/elf64-mmix.c
b/bfd/elf64-mmix.c
index 38d07b3cad8f1ed8d921d4a0dd358ab8034b5329..2038813067041be5f6e0da334710dade234556c8 100644
(file)
--- a/
bfd/elf64-mmix.c
+++ b/
bfd/elf64-mmix.c
@@
-1,5
+1,5
@@
/* MMIX-specific support for 64-bit ELF.
/* MMIX-specific support for 64-bit ELF.
- Copyright (C) 2001-201
5
Free Software Foundation, Inc.
+ Copyright (C) 2001-201
6
Free Software Foundation, Inc.
Contributed by Hans-Peter Nilsson <hp@bitrange.com>
This file is part of BFD, the Binary File Descriptor library.
Contributed by Hans-Peter Nilsson <hp@bitrange.com>
This file is part of BFD, the Binary File Descriptor library.
@@
-1429,7
+1429,7
@@
mmix_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
rel, 1, relend, howto, 0, contents);
RELOC_AGAINST_DISCARDED_SECTION (info, input_bfd, input_section,
rel, 1, relend, howto, 0, contents);
- if (
info->relocatable
)
+ if (
bfd_link_relocatable (info)
)
{
/* This is a relocatable link. For most relocs we don't have to
change anything, unless the reloc is against a section
{
/* This is a relocatable link. For most relocs we don't have to
change anything, unless the reloc is against a section
@@
-1516,13
+1516,12
@@
mmix_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
if (r != bfd_reloc_ok)
{
if (r != bfd_reloc_ok)
{
- bfd_boolean check_ok = TRUE;
const char * msg = (const char *) NULL;
switch (r)
{
case bfd_reloc_overflow:
const char * msg = (const char *) NULL;
switch (r)
{
case bfd_reloc_overflow:
-
check_ok =
info->callbacks->reloc_overflow
+ info->callbacks->reloc_overflow
(info, (h ? &h->root : NULL), name, howto->name,
(bfd_vma) 0, input_bfd, input_section, rel->r_offset);
break;
(info, (h ? &h->root : NULL), name, howto->name,
(bfd_vma) 0, input_bfd, input_section, rel->r_offset);
break;
@@
-1530,9
+1529,8
@@
mmix_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
case bfd_reloc_undefined:
/* We may have sent this message above. */
if (! undefined_signalled)
case bfd_reloc_undefined:
/* We may have sent this message above. */
if (! undefined_signalled)
- check_ok = info->callbacks->undefined_symbol
- (info, name, input_bfd, input_section, rel->r_offset,
- TRUE);
+ info->callbacks->undefined_symbol
+ (info, name, input_bfd, input_section, rel->r_offset, TRUE);
undefined_signalled = TRUE;
break;
undefined_signalled = TRUE;
break;
@@
-1554,11
+1552,8
@@
mmix_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
}
if (msg)
}
if (msg)
- check_ok = info->callbacks->warning
- (info, msg, name, input_bfd, input_section, rel->r_offset);
-
- if (! check_ok)
- return FALSE;
+ (*info->callbacks->warning) (info, msg, name, input_bfd,
+ input_section, rel->r_offset);
}
}
}
}
@@
-1870,7
+1865,7
@@
mmix_elf_check_common_relocs (bfd *abfd,
DSO-related stuff if that member is non-NULL. */
case R_MMIX_BASE_PLUS_OFFSET:
/* We don't do anything with this reloc for a relocatable link. */
DSO-related stuff if that member is non-NULL. */
case R_MMIX_BASE_PLUS_OFFSET:
/* We don't do anything with this reloc for a relocatable link. */
- if (
info->relocatable
)
+ if (
bfd_link_relocatable (info)
)
break;
if (bpo_greg_owner == NULL)
break;
if (bpo_greg_owner == NULL)
@@
-1994,7
+1989,7
@@
mmix_elf_check_relocs (bfd *abfd,
if (!mmix_elf_check_common_relocs (abfd, info, sec, relocs))
return FALSE;
if (!mmix_elf_check_common_relocs (abfd, info, sec, relocs))
return FALSE;
- if (
info->relocatable
)
+ if (
bfd_link_relocatable (info)
)
return TRUE;
rel_end = relocs + sec->reloc_count;
return TRUE;
rel_end = relocs + sec->reloc_count;
@@
-2114,9
+2109,7
@@
static asymbol *mmix_elf_reg_section_symbol_ptr;
/* Handle the special section numbers that a symbol may use. */
void
/* Handle the special section numbers that a symbol may use. */
void
-mmix_elf_symbol_processing (abfd, asym)
- bfd *abfd ATTRIBUTE_UNUSED;
- asymbol *asym;
+mmix_elf_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED, asymbol *asym)
{
elf_symbol_type *elfsym;
{
elf_symbol_type *elfsym;
@@
-2303,7
+2296,7
@@
mmix_set_relaxable_size (bfd *abfd ATTRIBUTE_UNUSED,
/* For use in relocatable link, we start with a max stubs size. See
mmix_elf_relax_section. */
/* For use in relocatable link, we start with a max stubs size. See
mmix_elf_relax_section. */
- if (
info->relocatable
&& sec->output_section)
+ if (
bfd_link_relocatable (info)
&& sec->output_section)
mmix_elf_section_data (sec->output_section)->pjs.stubs_size_sum
+= (mmix_elf_section_data (sec)->pjs.n_pushj_relocs
* MAX_PUSHJ_STUB_SIZE);
mmix_elf_section_data (sec->output_section)->pjs.stubs_size_sum
+= (mmix_elf_section_data (sec)->pjs.n_pushj_relocs
* MAX_PUSHJ_STUB_SIZE);
@@
-2491,9
+2484,8
@@
bpo_reloc_request_sort_fn (const void * p1, const void * p2)
from base-plus-offset relocs. */
void
from base-plus-offset relocs. */
void
-mmix_dump_bpo_gregs (link_info, pf)
- struct bfd_link_info *link_info;
- bfd_error_handler_type pf;
+mmix_dump_bpo_gregs (struct bfd_link_info *link_info,
+ bfd_error_handler_type pf)
{
bfd *bpo_greg_owner;
asection *bpo_gregs_section;
{
bfd *bpo_greg_owner;
asection *bpo_gregs_section;
@@
-2624,7
+2616,7
@@
mmix_elf_relax_section (bfd *abfd,
/* We process relocs in a distinctly different way when this is a
relocatable link (for one, we don't look at symbols), so we avoid
mixing its code with that for the "normal" relaxation. */
/* We process relocs in a distinctly different way when this is a
relocatable link (for one, we don't look at symbols), so we avoid
mixing its code with that for the "normal" relaxation. */
- if (
link_info->relocatable
)
+ if (
bfd_link_relocatable (link_info)
)
{
/* The only transformation in a relocatable link is to generate
a full stub at the location of the stub calculated for the
{
/* The only transformation in a relocatable link is to generate
a full stub at the location of the stub calculated for the
This page took
0.025669 seconds
and
4
git commands to generate.