aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-02-11 21:27:41 +0000
committerJeff Law <law@redhat.com>2000-02-11 21:27:41 +0000
commitc97305a1da199cf0b2dd3fbf57c4b5857a83a5df (patch)
tree6d431efaea3f5d1afd430c32b192d2de8ac70b71 /gas
parentfa292f2358c4d8b1bfee4203ea4a4a86164adb34 (diff)
downloadgdb-c97305a1da199cf0b2dd3fbf57c4b5857a83a5df.zip
gdb-c97305a1da199cf0b2dd3fbf57c4b5857a83a5df.tar.gz
gdb-c97305a1da199cf0b2dd3fbf57c4b5857a83a5df.tar.bz2
* 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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-hppa.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4dd895b..912e31c 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 <nickc@cygnus.com>
* 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 fe53273..7e95a4a 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);