diff options
author | Michael Eager <eager@eagercon.com> | 2012-01-27 16:47:27 +0000 |
---|---|---|
committer | Michael Eager <eager@eagercon.com> | 2012-01-27 16:47:27 +0000 |
commit | 0d048da385c7e7febf19e3fb57e9acbc59370439 (patch) | |
tree | 852494a7a295421fec558d053b87d7e068138bcf /bfd/elf32-microblaze.c | |
parent | 4b3c9f41b64c21833f687a547e3e894c14d81859 (diff) | |
download | gdb-0d048da385c7e7febf19e3fb57e9acbc59370439.zip gdb-0d048da385c7e7febf19e3fb57e9acbc59370439.tar.gz gdb-0d048da385c7e7febf19e3fb57e9acbc59370439.tar.bz2 |
* bfd/elf32-microblaze.c (create_got_section):
Reuse existing .rela.got section.
Diffstat (limited to 'bfd/elf32-microblaze.c')
-rw-r--r-- | bfd/elf32-microblaze.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |