diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-11-01 22:07:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-11-01 22:07:46 +0000 |
commit | da15a93ea12380a05a34c15377e35d3415137375 (patch) | |
tree | 7d7e481b617acb2aca174174e02887bb818392ee | |
parent | 2622a6c256483ab1c251640fa796358e4bc21c25 (diff) | |
download | gdb-da15a93ea12380a05a34c15377e35d3415137375.zip gdb-da15a93ea12380a05a34c15377e35d3415137375.tar.gz gdb-da15a93ea12380a05a34c15377e35d3415137375.tar.bz2 |
* config/tc-mips.c (s_change_sec): If not GPOPT, don't permit
switching to the readonly data section.
-rw-r--r-- | gas/ChangeLog | 3 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 6 |
2 files changed, 9 insertions, 0 deletions
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 <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) 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': |