diff options
author | Jeff Law <law@redhat.com> | 1994-11-16 06:17:08 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-11-16 06:17:08 +0000 |
commit | dc1b12211fd463c72235cf3b4b68ae487e368216 (patch) | |
tree | be0d597ad0f7cf9d2f2da1f358670721c79e2bd7 /gas | |
parent | e67b3aa3a718fd3547aee619e2da80069e5a60c1 (diff) | |
download | gdb-dc1b12211fd463c72235cf3b4b68ae487e368216.zip gdb-dc1b12211fd463c72235cf3b4b68ae487e368216.tar.gz gdb-dc1b12211fd463c72235cf3b4b68ae487e368216.tar.bz2 |
* config/tc-hppa.c (pa_subspace): Make sure to always reset
current_subspace.
(pa_text, pa_data): Likewise.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-hppa.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 1059c5e..498f40e 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -4839,7 +4839,7 @@ pa_procend (unused) #ifdef OBJ_ELF /* ELF needs to mark the end of each function so that it can compute - the size of the function (apparently its needed in the symbol table. */ + the size of the function (apparently its needed in the symbol table). */ hppa_elf_mark_end_of_function (); #endif @@ -5184,6 +5184,7 @@ pa_subspace (unused) if (ssd && SUBSPACE_DEFINED (ssd)) { subseg_set (ssd->ssd_seg, ssd->ssd_subseg); + current_subspace = ssd; if (!is_end_of_statement ()) as_warn ("Parameters of an existing subspace can\'t be modified"); demand_empty_rest_of_line (); @@ -5977,6 +5978,9 @@ static void pa_data (unused) int unused; { + current_space = is_defined_space ("$PRIVATE$"); + current_subspace + = pa_subsegment_to_subspace (current_space->sd_seg, 0); s_data (0); pa_undefine_label (); } @@ -6027,6 +6031,10 @@ static void pa_text (unused) int unused; { + current_space = is_defined_space ("$TEXT$"); + current_subspace + = pa_subsegment_to_subspace (current_space->sd_seg, 0); + s_text (0); pa_undefine_label (); } |