Suppress extra addition of ImageBase.

This commit is contained in:
Nick Clifton 2001-02-09 18:38:58 +00:00
parent de68de201f
commit 356d255deb
2 changed files with 8 additions and 1 deletions

View File

@ -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> 2001-02-09 Jakub Jelinek <jakub@redhat.com>
* elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function. * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.

View File

@ -1958,12 +1958,14 @@ _bfd_pe_get_symbol_info (abfd, symbol, ret)
symbol_info *ret; symbol_info *ret;
{ {
coff_get_symbol_info (abfd, symbol, 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 if (pe_data (abfd) != NULL
&& ((symbol->flags & BSF_DEBUGGING) == 0 && ((symbol->flags & BSF_DEBUGGING) == 0
|| (symbol->flags & BSF_DEBUGGING_RELOC) != 0) || (symbol->flags & BSF_DEBUGGING_RELOC) != 0)
&& ! bfd_is_abs_section (symbol->section)) && ! bfd_is_abs_section (symbol->section))
ret->value += pe_data (abfd)->pe_opthdr.ImageBase; ret->value += pe_data (abfd)->pe_opthdr.ImageBase;
#endif
} }
/* Handle the .idata section and other things that need symbol table /* Handle the .idata section and other things that need symbol table