projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove ATTRIBUTE_UNUSED check from ARI
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-m32r.c
diff --git
a/bfd/elf32-m32r.c
b/bfd/elf32-m32r.c
index 8f05a5e4d6eec2dc91980818f4407c6356ef1238..edd04b91d9d771472c2cd05368bb1f5b0063ebae 100644
(file)
--- a/
bfd/elf32-m32r.c
+++ b/
bfd/elf32-m32r.c
@@
-1322,7
+1322,7
@@
_bfd_m32r_elf_section_from_bfd_section (bfd *abfd ATTRIBUTE_UNUSED,
asection *sec,
int *retval)
{
asection *sec,
int *retval)
{
- if (strcmp (bfd_
get_section_name (abfd,
sec), ".scommon") == 0)
+ if (strcmp (bfd_
section_name (
sec), ".scommon") == 0)
{
*retval = SHN_M32R_SCOMMON;
return TRUE;
{
*retval = SHN_M32R_SCOMMON;
return TRUE;
@@
-1407,7
+1407,7
@@
m32r_elf_add_symbol_hook (bfd *abfd,
flags);
if (s == NULL)
return FALSE;
flags);
if (s == NULL)
return FALSE;
- if (!
bfd_set_section_alignment (abfd,
s, 2))
+ if (!
bfd_set_section_alignment (
s, 2))
return FALSE;
}
return FALSE;
}
@@
-1623,7
+1623,7
@@
m32r_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
s = bfd_make_section_anyway_with_flags (abfd, ".plt", pltflags);
htab->root.splt = s;
if (s == NULL
s = bfd_make_section_anyway_with_flags (abfd, ".plt", pltflags);
htab->root.splt = s;
if (s == NULL
- || !
bfd_set_section_alignment (abfd,
s, bed->plt_alignment))
+ || !
bfd_set_section_alignment (
s, bed->plt_alignment))
return FALSE;
if (bed->want_plt_sym)
return FALSE;
if (bed->want_plt_sym)
@@
-1654,7
+1654,7
@@
m32r_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
flags | SEC_READONLY);
htab->root.srelplt = s;
if (s == NULL
flags | SEC_READONLY);
htab->root.srelplt = s;
if (s == NULL
- || !
bfd_set_section_alignment (abfd,
s, ptralign))
+ || !
bfd_set_section_alignment (
s, ptralign))
return FALSE;
if (htab->root.sgot == NULL
return FALSE;
if (htab->root.sgot == NULL
@@
-1693,7
+1693,7
@@
m32r_elf_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
flags | SEC_READONLY);
htab->srelbss = s;
if (s == NULL
flags | SEC_READONLY);
htab->srelbss = s;
if (s == NULL
- || !
bfd_set_section_alignment (abfd,
s, ptralign))
+ || !
bfd_set_section_alignment (
s, ptralign))
return FALSE;
}
}
return FALSE;
}
}
@@
-2234,7
+2234,7
@@
m32r_elf_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
/* Strip this section if we don't need it; see the
comment below. */
}
/* Strip this section if we don't need it; see the
comment below. */
}
- else if (CONST_STRNEQ (bfd_
get_section_name (dynobj,
s), ".rela"))
+ else if (CONST_STRNEQ (bfd_
section_name (
s), ".rela"))
{
if (s->size != 0 && s != htab->root.srelplt)
relocs = TRUE;
{
if (s->size != 0 && s != htab->root.srelplt)
relocs = TRUE;
@@
-2954,7
+2954,7
@@
m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
const char *name;
BFD_ASSERT (sec != NULL);
const char *name;
BFD_ASSERT (sec != NULL);
- name = bfd_
get_section_name (sec->owner,
sec);
+ name = bfd_
section_name (
sec);
if ( strcmp (name, ".sdata") == 0
|| strcmp (name, ".sbss") == 0
if ( strcmp (name, ".sdata") == 0
|| strcmp (name, ".sbss") == 0
@@
-3022,7
+3022,7
@@
m32r_elf_relocate_section (bfd *output_bfd ATTRIBUTE_UNUSED,
name = (bfd_elf_string_from_elf_section
(input_bfd, symtab_hdr->sh_link, sym->st_name));
if (name == NULL || *name == '\0')
name = (bfd_elf_string_from_elf_section
(input_bfd, symtab_hdr->sh_link, sym->st_name));
if (name == NULL || *name == '\0')
- name = bfd_section_name (
input_bfd,
sec);
+ name = bfd_section_name (sec);
}
if (errmsg != NULL)
}
if (errmsg != NULL)
@@
-3403,9
+3403,8
@@
m32r_elf_object_p (bfd *abfd)
/* Store the machine number in the flags field. */
/* Store the machine number in the flags field. */
-static void
-m32r_elf_final_write_processing (bfd *abfd,
- bfd_boolean linker ATTRIBUTE_UNUSED)
+static bfd_boolean
+m32r_elf_final_write_processing (bfd *abfd)
{
unsigned long val;
{
unsigned long val;
@@
-3419,6
+3418,7
@@
m32r_elf_final_write_processing (bfd *abfd,
elf_elfheader (abfd)->e_flags &=~ EF_M32R_ARCH;
elf_elfheader (abfd)->e_flags |= val;
elf_elfheader (abfd)->e_flags &=~ EF_M32R_ARCH;
elf_elfheader (abfd)->e_flags |= val;
+ return _bfd_elf_final_write_processing (abfd);
}
/* Function to keep M32R specific file flags. */
}
/* Function to keep M32R specific file flags. */
This page took
0.024209 seconds
and
4
git commands to generate.