diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-01-30 18:29:26 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-01-30 18:29:26 +0000 |
commit | 2edc8357dead10b0db9999d2c540fc47cb35be9b (patch) | |
tree | ab087588095df0f5d1c9ce944f27123319fc2f0e /bfd/aoutx.h | |
parent | 7d251816703c2a09497ad4d1112bfc8c9049e792 (diff) | |
download | gdb-2edc8357dead10b0db9999d2c540fc47cb35be9b.zip gdb-2edc8357dead10b0db9999d2c540fc47cb35be9b.tar.gz gdb-2edc8357dead10b0db9999d2c540fc47cb35be9b.tar.bz2 |
* aoutx.h (aout_link_write_symbols): Write out correct value for
object file symbol.
Diffstat (limited to 'bfd/aoutx.h')
-rw-r--r-- | bfd/aoutx.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 2f70cd3..1c8a08c 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -3568,7 +3568,9 @@ aout_link_write_symbols (finfo, input_bfd, symbol_map) &finfo->strtab), outsym->e_strx); PUT_WORD (output_bfd, - bfd_get_section_vma (input_bfd, obj_textsec (input_bfd)), + (bfd_get_section_vma (output_bfd, + obj_textsec (input_bfd)->output_section) + + obj_textsec (input_bfd)->output_offset), outsym->e_value); ++obj_aout_external_sym_count (output_bfd); ++outsym; |