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.
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.
{
/* 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
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)
{