* elf32-ppc.c (ppc_elf_check_relocs): Report plt reloc against
authorAlan Modra <amodra@gmail.com>
Tue, 24 Jun 2003 14:17:22 +0000 (14:17 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Jun 2003 14:17:22 +0000 (14:17 +0000)
local sym errors.

bfd/ChangeLog
bfd/elf32-ppc.c

index f2e1e8589484ff5b0613d7794fc02ebe502204cd..de644060d7f67fccae0bd4280d9f6a90df03c17f 100644 (file)
@@ -1,5 +1,8 @@
 2003-06-24  Alan Modra  <amodra@bigpond.net.au>
 
+       * elf32-ppc.c (ppc_elf_check_relocs): Report plt reloc against
+       local sym errors.
+
        * elf32-i386.c: Convert to C90 function definitions, remove unnecessary
        prototypes and casts.  Replace PTR with void *.  Formatting.
        * elf32-ppc.c: Likewise.  Break long strings too.
index 90f9b221b903bff03ce9187fb2ea114864ef539d..a7ccfed14ca6e7c061e5ec077fb15134832afa32 100644 (file)
@@ -3269,6 +3269,12 @@ ppc_elf_check_relocs (bfd *abfd,
            {
              /* It does not make sense to have a procedure linkage
                 table entry for a local symbol.  */
+             (*_bfd_error_handler) (_("%s(%s+0x%lx): %s reloc against "
+                                      "local symbol"),
+                                    bfd_archive_filename (abfd),
+                                    sec->name,
+                                    (long) rel->r_offset,
+                                    ppc_elf_howto_table[r_type]->name);
              bfd_set_error (bfd_error_bad_value);
              return FALSE;
            }