* config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
authorJeff Law <law@redhat.com>
Sat, 30 Oct 1993 23:00:34 +0000 (23:00 +0000)
committerJeff Law <law@redhat.com>
Sat, 30 Oct 1993 23:00:34 +0000 (23:00 +0000)
        for $TEXT$ and $PRIVATE$ from the default space structure.

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

index f6db3672e6200d994382a0c38ea15cc6a796e427..373e1967ba418259f900646ac6bda4fde7afa9ce 100644 (file)
@@ -1,5 +1,8 @@
 Sat Oct 30 14:26:20 1993  Jeffrey A. Law  (law@snake.cs.utah.edu)
 
+       * config/tc-hppa.c (pa_parse_space_stmt): Get segment and sort key
+       for $TEXT$ and $PRIVATE$ from the default space structure.
+
        * config/tc-hppa.c (pa_export_args): Always set BSF_FUNCTION
        as appropriate for the given type.
 
index a2ed54ab07e386a1c1d298aeedea82f943ece5d9..460632505002851670735d385c7862e72dccf086 100644 (file)
@@ -5110,13 +5110,13 @@ pa_parse_space_stmt (space_name, create_flag)
   private = FALSE;
   if (strcasecmp (space_name, "$TEXT$") == 0)
     {
-      seg = text_section;
-      sort = 8;
+      seg = pa_def_spaces[0].segment;
+      sort = pa_def_spaces[0].sort;
     }
-  else
+  else if (strcasecmp (space_name, "$PRIVATE$") == 0)
     {
-      seg = data_section;
-      sort = 16;
+      seg = pa_def_spaces[1].segment;
+      sort = pa_def_spaces[1].sort;
     }
 
   if (!is_end_of_statement ())