aboutsummaryrefslogtreecommitdiff
path: root/bfd/peigen.c
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
commit356d255deb0cb49d4dade90addbb7bdcde0d7e36 (patch)
tree031da06a1265dcb6c472927f01d0af6c0844ebf8 /bfd/peigen.c
parentde68de201f0696f3c6df05c00b12a062eb0f7578 (diff)
downloadgdb-356d255deb0cb49d4dade90addbb7bdcde0d7e36.zip
gdb-356d255deb0cb49d4dade90addbb7bdcde0d7e36.tar.gz
gdb-356d255deb0cb49d4dade90addbb7bdcde0d7e36.tar.bz2
Suppress extra addition of ImageBase.
Diffstat (limited to 'bfd/peigen.c')
-rw-r--r--bfd/peigen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/peigen.c b/bfd/peigen.c
index 094920c..699c726 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