From 18de3f1908655026caa64bdc3a710ec8a97df05f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 10 Apr 1996 18:11:00 +0000 Subject: [PATCH] * 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. --- bfd/ChangeLog | 6 ++++++ bfd/aoutx.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fd233af7362..84e58aaaa7f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,11 @@ Wed Apr 10 00:23:53 1996 Ian Lance Taylor + * 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. diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 17b869e1cc5..41a9b9a8d62 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -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) { -- 2.30.2