From: Michael Eager Date: Fri, 27 Jan 2012 16:47:27 +0000 (+0000) Subject: * bfd/elf32-microblaze.c (create_got_section): X-Git-Tag: sid-snapshot-20120201~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d048da385c7e7febf19e3fb57e9acbc59370439;p=external%2Fbinutils.git * bfd/elf32-microblaze.c (create_got_section): Reuse existing .rela.got section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 23c33a1..6fc3466 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-01-27 Michael Eager + + * bfd/elf32-microblaze.c (create_got_section): + Reuse existing .rela.got section. + 2012-01-23 Alan Modra * elf-bfd.h: Formatting. diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c index b180dc4..a58f7b3 100644 --- a/bfd/elf32-microblaze.c +++ b/bfd/elf32-microblaze.c @@ -1880,7 +1880,8 @@ create_got_section (bfd *dynobj, struct bfd_link_info *info) if (!htab->sgot || !htab->sgotplt) return FALSE; - htab->srelgot = bfd_make_section (dynobj, ".rela.got"); + if (!(htab->srelgot = bfd_get_section_by_name (dynobj, ".rela.got"))) + htab->srelgot = bfd_make_section (dynobj, ".rela.got"); if (htab->srelgot == NULL || ! bfd_set_section_flags (dynobj, htab->srelgot, SEC_ALLOC | SEC_LOAD