* aoutx.h (aout_link_write_symbols): Write out correct value for

object file symbol.
This commit is contained in:
Ian Lance Taylor 1994-01-30 18:29:26 +00:00
parent 7d25181670
commit 2edc8357de
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Jan 30 13:25:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* aoutx.h (aout_link_write_symbols): Write out correct value for
object file symbol.
Fri Jan 28 18:34:05 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* hosts/vaxbsd.h (HOST_STACK_END_ADDR): Vax BSD doesn't define

View File

@ -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;