diff options
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-mips.c | 9 | ||||
-rw-r--r-- | gas/config/tc-mips.h | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 02e9e9f..c17e70a 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -14550,3 +14550,12 @@ MIPS options:\n\ -64 create 64 ABI object file\n")); #endif } + +enum dwarf2_format +mips_dwarf2_format () +{ + if (mips_abi == N64_ABI) + return dwarf2_format_64bit_irix; + else + return dwarf2_format_32bit; +} diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h index 76c13dc..2c0f3fa 100644 --- a/gas/config/tc-mips.h +++ b/gas/config/tc-mips.h @@ -182,4 +182,7 @@ extern void mips_flush_pending_output PARAMS ((void)); extern void mips_enable_auto_align PARAMS ((void)); #define md_elf_section_change_hook() mips_enable_auto_align() +extern enum dwarf2_format mips_dwarf2_format PARAMS ((void)); +#define DWARF2_FORMAT() mips_dwarf2_format () + #endif /* TC_MIPS */ |