From da15a93ea12380a05a34c15377e35d3415137375 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 1 Nov 1994 22:07:46 +0000 Subject: [PATCH] * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit switching to the readonly data section. --- gas/ChangeLog | 3 +++ gas/config/tc-mips.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 6c1c6db..f668268 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ Tue Nov 1 16:10:59 1994 Ian Lance Taylor + * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit + switching to the readonly data section. + * ecoff.c (ecoff_directive_type): Fix warning message. Sun Oct 30 00:57:35 1994 Jeff Law (law@snake.cs.utah.edu) diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index a6f3488..c3a7565 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -5684,6 +5684,7 @@ s_change_sec (sec) break; case 'r': +#ifdef GPOPT seg = subseg_new (RDATA_SECTION_NAME, (subsegT) get_absolute_expression ()); #ifdef OBJ_ELF @@ -5696,6 +5697,11 @@ s_change_sec (sec) bfd_set_section_alignment (stdoutput, seg, 4); #endif demand_empty_rest_of_line (); +#else /* ! defined (GPOPT) */ + as_bad ("No read only data section in this object file format"); + demand_empty_rest_of_line (); + return; +#endif /* ! defined (GPOPT) */ break; case 's': -- 2.7.4