From: DJ Delorie Date: Fri, 7 Apr 2006 01:08:34 +0000 (+0000) Subject: * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35520cb7088b85e939a2c72b4aab8ee6c9f872ca;p=binutils-gdb.git * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for each plt entry we create. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e755e8c027b..b48a703857a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-04-06 DJ Delorie + + * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for + each plt entry we create. + 2006-04-06 Carlos O'Donell * po/Make-in: Add install-html target. diff --git a/bfd/elf32-m32c.c b/bfd/elf32-m32c.c index f56efd2e4da..5e9f3ab28a2 100644 --- a/bfd/elf32-m32c.c +++ b/bfd/elf32-m32c.c @@ -482,6 +482,22 @@ m32c_elf_relocate_section relocation = (splt->output_section->vma + splt->output_offset + (*plt_offset & -2)); + if (name) + { + char *newname = bfd_malloc (strlen(name)+5); + strcpy (newname, name); + strcat(newname, ".plt"); + _bfd_generic_link_add_one_symbol (info, + input_bfd, + newname, + BSF_FUNCTION | BSF_WEAK, + splt, + (*plt_offset & -2), + 0, + 1, + 0, + 0); + } } } break;