aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-09-09 19:09:23 +0000
committerIan Lance Taylor <ian@airs.com>1993-09-09 19:09:23 +0000
commitabdd08c97cbd010dd9a26c5d3588c57f86f9b990 (patch)
tree954ad300b1f2e82e2af416d249d5fa5f8dc72212
parentf46ffb9ebd962cac950b40604900ede5e174afd8 (diff)
downloadgdb-abdd08c97cbd010dd9a26c5d3588c57f86f9b990.zip
gdb-abdd08c97cbd010dd9a26c5d3588c57f86f9b990.tar.gz
gdb-abdd08c97cbd010dd9a26c5d3588c57f86f9b990.tar.bz2
* read.c (get_stab_string_offset, s_stab_generic): If
BFD_ASSEMBLER, call subseg_set rather than subseg_new.
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/read.c12
2 files changed, 13 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 78bf35a..71ea290 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep 9 15:05:34 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * read.c (get_stab_string_offset, s_stab_generic): If
+ BFD_ASSEMBLER, call subseg_set rather than subseg_new.
+
Wed Sep 8 15:09:17 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* config/obj-elf.c (obj_elf_section): Set SEC_LOAD when using
diff --git a/gas/read.c b/gas/read.c
index c4aa0f0..063d37b 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -2745,7 +2745,7 @@ get_stab_string_offset (string, secname)
/* free (newsecname);*/
}
#ifdef BFD_ASSEMBLER
- subseg_new ((char *) seg->name, save_subseg);
+ subseg_set (seg, save_subseg);
#else
/* subseg_new (seg, save_subseg); */
#endif
@@ -2769,7 +2769,7 @@ get_stab_string_offset (string, secname)
gdb_string_index++;
}
#ifdef BFD_ASSEMBLER
- subseg_new ((char *) save_seg->name, save_subseg);
+ subseg_set (save_seg, save_subseg);
#else
/* subseg_new (save_seg, save_subseg); */
#endif
@@ -2928,12 +2928,16 @@ s_stab_generic (what, secname)
if (goof)
{
ignore_rest_of_line ();
+#ifdef BFD_ASSEMBLER
+ subseg_set (saved_seg, saved_subseg);
+#else
subseg_new (saved_seg, saved_subseg);
+#endif
return;
}
#ifdef BFD_ASSEMBLER
- subseg_new ((char *) seg->name, subseg);
+ subseg_set (seg, subseg);
#endif
#if 0 /* needed for elf only? */
@@ -2964,7 +2968,7 @@ s_stab_generic (what, secname)
md_number_to_chars (p, 0, 4);
}
#ifdef BFD_ASSEMBLER
- subseg_new ((char *) saved_seg->name, subseg);
+ subseg_set (saved_seg, subseg);
#else
/* subseg_new (saved_seg, subseg); */
#endif