aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-m68k.c
diff options
context:
space:
mode:
authorCatherine Moore <clm@redhat.com>1999-05-05 10:58:59 +0000
committerCatherine Moore <clm@redhat.com>1999-05-05 10:58:59 +0000
commit0d96863f2b09798c659a367b3cbd67cecc1951b6 (patch)
treee7f6dfed4ce78914f8b2761748f2b92bef1bad83 /gas/config/tc-m68k.c
parent5ce00b97b977fc00621cbbbc597485c04a8b8828 (diff)
downloadgdb-0d96863f2b09798c659a367b3cbd67cecc1951b6.zip
gdb-0d96863f2b09798c659a367b3cbd67cecc1951b6.tar.gz
gdb-0d96863f2b09798c659a367b3cbd67cecc1951b6.tar.bz2
* tc-m68k.c: Include elf/m68k.h.
(m68k_elf_final_processing): New routine. * tc-m68k.h (elf_tc_final_processing m68k_elf_final_processing): Define.
Diffstat (limited to 'gas/config/tc-m68k.c')
-rw-r--r--gas/config/tc-m68k.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c
index 856dd4e..79faf54 100644
--- a/gas/config/tc-m68k.c
+++ b/gas/config/tc-m68k.c
@@ -27,6 +27,10 @@
#include "opcode/m68k.h"
#include "m68k-parse.h"
+#if defined (OBJ_ELF)
+#include "elf/m68k.h"
+#endif
+
/* This string holds the chars that always start a comment. If the
pre-processor is disabled, these aren't very useful. The macro
tc_comment_chars points to this. We use this, rather than the
@@ -7005,5 +7009,12 @@ tc_coff_sizemachdep (frag)
#endif
#endif
-
+#ifdef OBJ_ELF
+void m68k_elf_final_processing()
+{
+ /* Set file-specific flags if this is a cpu32 processor */
+ if (cpu_of_arch (current_architecture) & cpu32)
+ elf_elfheader (stdoutput)->e_flags |= EF_CPU32;
+}
+#endif
/* end of tc-m68k.c */