diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-04-10 18:11:00 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-04-10 18:11:00 +0000 |
commit | 18de3f1908655026caa64bdc3a710ec8a97df05f (patch) | |
tree | 0ecea1c83cdc41dcc8302f05655e408a6c0007cb | |
parent | 66ab4152a04f01fac6c379e0750a9ee6729348b0 (diff) | |
download | gdb-18de3f1908655026caa64bdc3a710ec8a97df05f.zip gdb-18de3f1908655026caa64bdc3a710ec8a97df05f.tar.gz gdb-18de3f1908655026caa64bdc3a710ec8a97df05f.tar.bz2 |
* 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.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/aoutx.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fd233af..84e58aa 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 17b869e..41a9b9a 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) { |