aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-06-24 22:45:02 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-06-24 22:45:02 +0000
commit4a4953f54c4b8c0c1cacc8379379977a4c492bd4 (patch)
tree98d901bbc9fab81001a91f16f15b0c8e87f44198 /bfd/elflink.h
parentd7b5386f2b5ac488e68d175c4823f6d07903c50a (diff)
downloadgdb-4a4953f54c4b8c0c1cacc8379379977a4c492bd4.zip
gdb-4a4953f54c4b8c0c1cacc8379379977a4c492bd4.tar.gz
gdb-4a4953f54c4b8c0c1cacc8379379977a4c492bd4.tar.bz2
Add debug msg
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 8a9e579..a091503 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -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;