* aoutx.h (aout_link_write_symbols): Write out correct value for
authorIan Lance Taylor <ian@airs.com>
Sun, 30 Jan 1994 18:29:26 +0000 (18:29 +0000)
committerIan Lance Taylor <ian@airs.com>
Sun, 30 Jan 1994 18:29:26 +0000 (18:29 +0000)
object file symbol.

bfd/ChangeLog
bfd/aoutx.h

index 821639d4a6d85618f17e6bca5b59d692de3acba7..6f2e368fae5ba114e3b9be62de2a3fea32eeb56e 100644 (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
index 2f70cd36438eea8c327611b645c8d3698a9f3c5b..1c8a08c80f5e71b00dab32e7351bd2ab0dec9b92 100644 (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;