]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
authorJeff Law <law@redhat.com>
Fri, 11 Feb 2000 21:27:41 +0000 (21:27 +0000)
committerJeff Law <law@redhat.com>
Fri, 11 Feb 2000 21:27:41 +0000 (21:27 +0000)
        the unwinder subspace.  Save the current seg/subseg before creating
        the new seg/subseg.

gas/ChangeLog
gas/config/tc-hppa.c

index 4dd895b0ba332e1f3d2ced2769a9bde6a2ccda88..912e31c6e4f04f6fccd1539edae805c98de9542b 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb 11 14:21:51 2000  Jeffrey A Law  (law@cygnus.com)
+
+       * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create
+       the unwinder subspace.  Save the current seg/subseg before creating
+       the new seg/subseg.
+
 2000-02-10  Nick Clifton  <nickc@cygnus.com>
 
        * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and
index fe53273d9d5f4b46b1b779cdcdf687a129a49ce1..7e95a4ad6d0a0462f7ab6a59cc5e94328c916dda 100644 (file)
@@ -6001,21 +6001,21 @@ pa_build_unwind_subspace (call_info)
   else
     reloc = R_PARISC_SEGREL32;
 
+  save_seg = now_seg;
+  save_subseg = now_subseg;
   /* Get into the right seg/subseg.  This may involve creating
      the seg the first time through.  Make sure to have the
      old seg/subseg so that we can reset things when we are done.  */
   seg = bfd_get_section_by_name (stdoutput, UNWIND_SECTION_NAME);
   if (seg == ASEC_NULL)
     {
-      seg = bfd_make_section_old_way (stdoutput, UNWIND_SECTION_NAME);
+      seg = subseg_new (UNWIND_SECTION_NAME, 0);
       bfd_set_section_flags (stdoutput, seg,
                             SEC_READONLY | SEC_HAS_CONTENTS
                             | SEC_LOAD | SEC_RELOC | SEC_ALLOC | SEC_DATA);
       bfd_set_section_alignment (stdoutput, seg, 2);
     }
 
-  save_seg = now_seg;
-  save_subseg = now_subseg;
   subseg_set (seg, 0);