aboutsummaryrefslogtreecommitdiff
path: root/bfd/peigen.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/peigen.c')
-rw-r--r--bfd/peigen.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/bfd/peigen.c b/bfd/peigen.c
index f959e14..8d623bd 100644
--- a/bfd/peigen.c
+++ b/bfd/peigen.c
@@ -1808,3 +1808,18 @@ _bfd_pe_bfd_copy_private_section_data (ibfd, isec, obfd, osec)
return true;
}
+
+void
+_bfd_pe_get_symbol_info (abfd, symbol, ret)
+ bfd *abfd;
+ asymbol *symbol;
+ symbol_info *ret;
+{
+ coff_get_symbol_info (abfd, symbol, ret);
+
+ 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;
+}