* elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED sections.

This commit is contained in:
Nick Clifton 2013-02-08 17:11:36 +00:00
parent 4a81b02aa7
commit ad1fc92a0f
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
* elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
sections.
2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
* elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from

View File

@ -2051,7 +2051,7 @@ elf_metag_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
if (! _bfd_elf_create_dynamic_sections (abfd, info))
return FALSE;
htab->sgot = bfd_get_section_by_name (abfd, ".got");
htab->sgot = bfd_get_linker_section (abfd, ".got");
if (! htab->sgot)
return FALSE;
@ -2083,13 +2083,13 @@ elf_metag_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
elf_hash_table (info)->hgot = eh;
htab->splt = bfd_get_section_by_name (abfd, ".plt");
htab->srelplt = bfd_get_section_by_name (abfd, ".rela.plt");
htab->splt = bfd_get_linker_section (abfd, ".plt");
htab->srelplt = bfd_get_linker_section (abfd, ".rela.plt");
htab->srelgot = bfd_get_section_by_name (abfd, ".rela.got");
htab->srelgot = bfd_get_linker_section (abfd, ".rela.got");
htab->sdynbss = bfd_get_section_by_name (abfd, ".dynbss");
htab->srelbss = bfd_get_section_by_name (abfd, ".rela.bss");
htab->sdynbss = bfd_get_linker_section (abfd, ".dynbss");
htab->srelbss = bfd_get_linker_section (abfd, ".rela.bss");
return TRUE;
}
@ -2854,7 +2854,7 @@ elf_metag_size_dynamic_sections (bfd *output_bfd ATTRIBUTE_UNUSED,
/* Set the contents of the .interp section to the interpreter. */
if (info->executable)
{
s = bfd_get_section_by_name (dynobj, ".interp");
s = bfd_get_linker_section (dynobj, ".interp");
if (s == NULL)
abort ();
s->size = sizeof ELF_DYNAMIC_INTERPRETER;
@ -3306,7 +3306,7 @@ elf_metag_finish_dynamic_sections (bfd *output_bfd,
htab = metag_link_hash_table (info);
dynobj = htab->etab.dynobj;
sdyn = bfd_get_section_by_name (dynobj, ".dynamic");
sdyn = bfd_get_linker_section (dynobj, ".dynamic");
if (htab->etab.dynamic_sections_created)
{