diff options
author | Nick Clifton <nickc@redhat.com> | 2013-02-08 17:11:33 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-02-08 17:11:33 +0000 |
commit | 0a9bd86d0f64f8fa3309a55e6b623b101950ec90 (patch) | |
tree | aed5bcde1afa8bb97ee4da381bbdeb1989c31c58 /bfd/elf32-metag.c | |
parent | 195db1b1a7b1ed916fc049ff35798f82e02a33c9 (diff) | |
download | binutils-redhat-0a9bd86d0f64f8fa3309a55e6b623b101950ec90.tar.gz |
* elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED sections.
Diffstat (limited to 'bfd/elf32-metag.c')
-rw-r--r-- | bfd/elf32-metag.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bfd/elf32-metag.c b/bfd/elf32-metag.c index 2a0819b235..e0e333892f 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) { |