diff options
author | Thiemo Seufer <ths@networkno.de> | 2002-05-14 23:27:35 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2002-05-14 23:27:35 +0000 |
commit | 195325d290b83e05175a8d0db4a8ca029925ed10 (patch) | |
tree | e5470c33b175cf62c558844a54728d248abb9997 /gas | |
parent | 8dc1a139e175801913448fd2e6c608cc596d9a0c (diff) | |
download | gdb-195325d290b83e05175a8d0db4a8ca029925ed10.zip gdb-195325d290b83e05175a8d0db4a8ca029925ed10.tar.gz gdb-195325d290b83e05175a8d0db4a8ca029925ed10.tar.bz2 |
* config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
(mips_elf_final_processing): Let n32 use .reginfo.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 313e3f3..d1489a3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,11 @@ 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> + * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section + alignment for NewABI. Let n32 use .reginfo. Remove useless casts. + (mips_elf_final_processing): Let n32 use .reginfo. + +2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> + * config/tc-mips.c (append_insn): Fix too small range of variable. 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com> diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 150b47e..2a59ab4 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -1379,12 +1379,12 @@ md_begin () if (strcmp (TARGET_OS, "elf") != 0) flags |= SEC_ALLOC | SEC_LOAD; - if (! HAVE_NEWABI) + if (file_mips_abi != N64_ABI) { sec = subseg_new (".reginfo", (subsegT) 0); - (void) bfd_set_section_flags (stdoutput, sec, flags); - (void) bfd_set_section_alignment (stdoutput, sec, 2); + bfd_set_section_flags (stdoutput, sec, flags); + bfd_set_section_alignment (stdoutput, sec, HAVE_NEWABI ? 3 : 2); #ifdef OBJ_ELF mips_regmask_frag = frag_more (sizeof (Elf32_External_RegInfo)); @@ -1395,8 +1395,8 @@ md_begin () /* The 64-bit ABI uses a .MIPS.options section rather than .reginfo section. */ sec = subseg_new (".MIPS.options", (subsegT) 0); - (void) bfd_set_section_flags (stdoutput, sec, flags); - (void) bfd_set_section_alignment (stdoutput, sec, 3); + bfd_set_section_flags (stdoutput, sec, flags); + bfd_set_section_alignment (stdoutput, sec, 3); #ifdef OBJ_ELF /* Set up the option header. */ @@ -12763,7 +12763,7 @@ void mips_elf_final_processing () { /* Write out the register information. */ - if (! HAVE_NEWABI) + if (file_mips_abi != N64_ABI) { Elf32_RegInfo s; |