summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-02-09 18:38:58 +0000
committerNick Clifton <nickc@redhat.com>2001-02-09 18:38:58 +0000
commitd83216809800f699310e29661013da7d120b2098 (patch)
tree54d0fbdfc417b2d35a6c185424fbbaa96fd56c24 /bfd
parent469d4a22d093ef4fec10b6e8ee651ad4ba283940 (diff)
downloadgdb-d83216809800f699310e29661013da7d120b2098.tar.gz
Suppress extra addition of ImageBase.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/peigen.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2ce1c3c1efa..082c64383b1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-09 Nick Clifton <nickc@redhat.com>
+
+ * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
+ ImageBase. This has already been done by coff_swap_hdr_in.
+
2001-02-09 Jakub Jelinek <jakub@redhat.com>
* elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
diff --git a/bfd/peigen.c b/bfd/peigen.c
index 094920cfd4d..699c7267b28 100644
--- a/bfd/peigen.c
+++ b/bfd/peigen.c
@@ -1958,12 +1958,14 @@ _bfd_pe_get_symbol_info (abfd, symbol, ret)
symbol_info *ret;
{
coff_get_symbol_info (abfd, symbol, ret);
-
+#if 0 /* This code no longer appears to be necessary.
+ ImageBase has already been added in by coff_swap_scnhdr_in. */
if (pe_data (abfd) != NULL
&& ((symbol->flags & BSF_DEBUGGING) == 0
|| (symbol->flags & BSF_DEBUGGING_RELOC) != 0)
&& ! bfd_is_abs_section (symbol->section))
ret->value += pe_data (abfd)->pe_opthdr.ImageBase;
+#endif
}
/* Handle the .idata section and other things that need symbol table