* config/tc-s390.c (s390_elf_cons): Correct fixups for PLT
[deliverable/binutils-gdb.git] / gas / config / obj-ieee.c
index 521a0d72a3fcd90f7ed2475ca9247ce8d2cd6d14..505bb3533f954e4ad6aaa74e9c50a329b6041372 100644 (file)
@@ -292,7 +292,7 @@ do_symbols (abfd)
        {
          ptr->sy_symbol.sy.section =
            (asection *) (segment_info[ptr->sy_symbol.seg].user_stuff);
-         S_SET_VALUE (ptr, S_GET_VALUE (ptr) + ptr->sy_frag->fr_address);
+         S_SET_VALUE (ptr, S_GET_VALUE (ptr));
          if (ptr->sy_symbol.sy.flags == 0)
            ptr->sy_symbol.sy.flags = BSF_LOCAL;
        }
@@ -558,6 +558,9 @@ write_object_file ()
   for (i = SEG_E0; i < SEG_UNKNOWN; i++)
     relax_segment (segment_info[i].frag_root, i);
 
+  /* Relaxation has completed.  Freeze all syms.  */
+  finalize_syms = 1;
+
   /* Now the addresses of the frags are correct within the segment.  */
 
   bfd_as_write_hook ();
This page took 0.024346 seconds and 4 git commands to generate.