aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.h
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-mips.h')
-rw-r--r--gas/config/tc-mips.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-mips.h b/gas/config/tc-mips.h
index dd52a7f..a19c87d 100644
--- a/gas/config/tc-mips.h
+++ b/gas/config/tc-mips.h
@@ -185,4 +185,7 @@ extern void mips_enable_auto_align PARAMS ((void));
extern enum dwarf2_format mips_dwarf2_format PARAMS ((void));
#define DWARF2_FORMAT() mips_dwarf2_format ()
+#define DWARF2_ADDR_SIZE(bfd) \
+ (DWARF2_FORMAT () == dwarf2_format_32bit ? 4 : 8)
+
#endif /* TC_MIPS */