* config/tc-mips.c (s_change_sec): If not GPOPT, don't permit

switching to the readonly data section.
This commit is contained in:
Ian Lance Taylor 1994-11-01 22:07:46 +00:00
parent 2622a6c256
commit da15a93ea1
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,8 @@
Tue Nov 1 16:10:59 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* 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)

View File

@ -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':