* libaout.h (WRITE_HEADERS): Write out the relocs even if there

aren't any symbols.
	* aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
	not 0, for an absolute symbol.
	(NAME(aout,swap_ext_reloc_out)): Likewise.
PR 7387.
This commit is contained in:
Ian Lance Taylor 1996-04-10 18:11:00 +00:00
parent 66ab4152a0
commit 18de3f1908
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,11 @@
Wed Apr 10 00:23:53 1996 Ian Lance Taylor <ian@cygnus.com>
* libaout.h (WRITE_HEADERS): Write out the relocs even if there
aren't any symbols.
* aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
not 0, for an absolute symbol.
(NAME(aout,swap_ext_reloc_out)): Likewise.
* ihex.c (ihex_scan): Accept a length of 4 for record type 5.
(ihex_write_object_contents): For a large start address, output
the full 32 bit address in record type 5.

View File

@ -1971,7 +1971,7 @@ NAME(aout,swap_std_reloc_out) (abfd, g, natptr)
{
/* Whoops, looked like an abs symbol, but is really an offset
from the abs section */
r_index = 0;
r_index = N_ABS;
r_extern = 0;
}
else
@ -2050,7 +2050,7 @@ NAME(aout,swap_ext_reloc_out) (abfd, g, natptr)
if (bfd_is_abs_section (bfd_get_section (sym)))
{
r_extern = 0;
r_index = 0;
r_index = N_ABS;
}
else if ((sym->flags & BSF_SECTION_SYM) == 0)
{