From: Jeff Law Date: Fri, 11 Feb 2000 21:27:41 +0000 (+0000) Subject: * config/tc-hppa.c (pa_build_unwind_subspace): Use subseg_new to create X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c97305a1da199cf0b2dd3fbf57c4b5857a83a5df;p=binutils-gdb.git * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 4dd895b0ba3..912e31c6e4f 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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 * config/tc-mcore.c (INST_BYTE0): Redefine to handle big and diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index fe53273d9d5..7e95a4ad6d0 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -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);