diff options
author | Nick Clifton <nickc@redhat.com> | 2013-02-08 17:11:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-02-08 17:11:36 +0000 |
commit | ad1fc92a0f43fda7643e5a5cb00c74540553a6da (patch) | |
tree | 462efa05f23f3f9ecf58d660cd1f6224938b8cb3 /bfd | |
parent | 4a81b02aa7136d1ff90da72eb2313decb9ecf232 (diff) | |
download | gdb-ad1fc92a0f43fda7643e5a5cb00c74540553a6da.zip gdb-ad1fc92a0f43fda7643e5a5cb00c74540553a6da.tar.gz gdb-ad1fc92a0f43fda7643e5a5cb00c74540553a6da.tar.bz2 |
* elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED sections.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf32-metag.c | 16 |
2 files changed, 13 insertions, 8 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 6f6b102..a677680 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/elf32-metag.c b/bfd/elf32-metag.c index 2a0819b..e0e3338 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) { |