From: Nick Clifton Date: Fri, 8 Feb 2013 17:11:36 +0000 (+0000) Subject: * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED sections. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad1fc92a0f43fda7643e5a5cb00c74540553a6da;p=binutils-gdb.git * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6f6b10287b3..a6776804618 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2013-02-08 Markos Chandras + + * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED + sections. + 2013-02-08 Yufeng Zhang * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from diff --git a/bfd/elf32-metag.c b/bfd/elf32-metag.c index 2a0819b235e..e0e333892fe 100644 --- a/bfd/elf32-metag.c +++ b/bfd/elf32-metag.c @@ -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) {