Add debug msg
authorMichael Meissner <gnu@the-meissners.org>
Mon, 24 Jun 1996 22:45:02 +0000 (22:45 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Mon, 24 Jun 1996 22:45:02 +0000 (22:45 +0000)
bfd/elflink.h

index 8a9e579802065253ca11e8cc6e10cc0b9b90295a..a091503e83d39513fce4a85f297d0a22b075f4ce 100644 (file)
@@ -3367,7 +3367,15 @@ elf_create_pointer_linker_section (abfd, info, lsect, h, rel)
       lsect->hole_offset += ARCH_SIZE / 8;
       lsect->sym_offset  += ARCH_SIZE / 8;
       if (lsect->sym_hash)     /* Bump up symbol value if needed */
-       lsect->sym_hash->root.u.def.value += ARCH_SIZE / 8;
+       {
+         lsect->sym_hash->root.u.def.value += ARCH_SIZE / 8;
+#ifdef DEBUG
+         fprintf (stderr, "Bump up %s by %ld, current value = %ld\n",
+                  lsect->sym_hash->root.root.string,
+                  (long)ARCH_SIZE / 8,
+                  (long)lsect->sym_hash->root.u.def.value);
+#endif
+       }
     }
   else
     linker_section_ptr->offset = lsect->section->_raw_size;