Fix nightly testing bug.
This commit is contained in:
parent
e13d507e0f
commit
be461cc321
2 changed files with 24 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon May 18 14:44:15 1998 Nick Clifton <nickc@cygnus.com>
|
||||
|
||||
* peicode.h (add_data_entry): If the section has no private data
|
||||
then do not create a Data Dictionary entry for it.
|
||||
|
||||
Mon May 18 00:09:28 1998 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* elf64-alpha.c (elf64_alpha_relax_section): Set again on changes.
|
||||
|
|
|
@ -53,10 +53,14 @@ Most of this hacked by Steve Chamberlain,
|
|||
*/
|
||||
|
||||
#ifdef coff_bfd_print_private_bfd_data
|
||||
static boolean (* pe_saved_coff_bfd_print_private_bfd_data) (bfd *, PTR) = coff_bfd_print_private_bfd_data;
|
||||
static boolean (*pe_saved_coff_bfd_print_private_bfd_data)
|
||||
PARAMS ((bfd *, PTR))
|
||||
= coff_bfd_print_private_bfd_data;
|
||||
#undef coff_bfd_print_private_bfd_data
|
||||
#else
|
||||
static boolean (* pe_saved_coff_bfd_print_private_bfd_data) (bfd *, PTR) = NULL;
|
||||
static boolean (*pe_saved_coff_bfd_print_private_bfd_data)
|
||||
PARAMS ((bfd *, PTR))
|
||||
= NULL;
|
||||
#endif
|
||||
#define coff_bfd_print_private_bfd_data pe_print_private_bfd_data
|
||||
|
||||
|
@ -853,7 +857,9 @@ static void add_data_entry (abfd, aout, idx, name, base)
|
|||
asection *sec = bfd_get_section_by_name (abfd, name);
|
||||
|
||||
/* add import directory information if it exists */
|
||||
if (sec != NULL)
|
||||
if (sec != NULL
|
||||
&& coff_section_data (abfd, sec) != NULL
|
||||
&& pei_section_data (abfd, sec) != NULL)
|
||||
{
|
||||
aout->DataDirectory[idx].VirtualAddress = (sec->vma - base) & 0xffffffff;
|
||||
aout->DataDirectory[idx].Size = pei_section_data (abfd, sec)->virt_size;
|
||||
|
@ -2055,10 +2061,14 @@ pe_mkobject_hook (abfd, filehdr, aouthdr)
|
|||
to the output bfd. */
|
||||
|
||||
#ifdef coff_bfd_copy_private_bfd_data
|
||||
static boolean (* pe_saved_coff_bfd_copy_private_bfd_data)(bfd *, bfd *) = coff_bfd_copy_private_bfd_data;
|
||||
static boolean (*pe_saved_coff_bfd_copy_private_bfd_data)
|
||||
PARAMS ((bfd *, bfd *))
|
||||
= coff_bfd_copy_private_bfd_data;
|
||||
#undef coff_bfd_copy_private_bfd_data
|
||||
#else
|
||||
static boolean (* pe_saved_coff_bfd_copy_private_bfd_data)(bfd *, bfd *) = NULL;
|
||||
static boolean (*pe_saved_coff_bfd_copy_private_bfd_data)
|
||||
PARAMS ((bfd *, bfd *))
|
||||
= NULL;
|
||||
#endif
|
||||
#define coff_bfd_copy_private_bfd_data pe_bfd_copy_private_bfd_data
|
||||
|
||||
|
|
Loading…
Reference in a new issue