From: Ian Lance Taylor Date: Tue, 1 Nov 1994 22:07:46 +0000 (+0000) Subject: * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da15a93ea12380a05a34c15377e35d3415137375;p=binutils-gdb.git * config/tc-mips.c (s_change_sec): If not GPOPT, don't permit switching to the readonly data section. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 6c1c6dbc4e7..f66826866bc 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 a6f3488ac0d..c3a75657ea7 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':