summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-09-06 13:00:45 +0200
committerMatthias Braun <matze@braunis.de>2011-09-06 13:57:06 +0200
commit9246866a19201d235897e8ef842a28542911cd68 (patch)
tree4ae473c3200cbc873e30891a39b2dab04cc06756 /ir/be/begnuas.h
parent45748a5e03ef5211597d576e6af8b22692bf6219 (diff)
begnuas: let user specify elf variants
Diffstat (limited to 'ir/be/begnuas.h')
-rw-r--r--ir/be/begnuas.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/ir/be/begnuas.h b/ir/be/begnuas.h
index b2192d6..72958eb 100644
--- a/ir/be/begnuas.h
+++ b/ir/be/begnuas.h
@@ -53,17 +53,22 @@ typedef enum object_file_format_t {
OBJECT_FILE_FORMAT_ELF, /**< Executable and Linkable Format (unixes) */
OBJECT_FILE_FORMAT_COFF, /**< Common Object File Format (Windows) */
OBJECT_FILE_FORMAT_MACH_O, /**< Mach Object File Format (OS/X) */
- OBJECT_FILE_FORMAT_ELF_SPARC, /**< Sparc variant of ELF */
- OBJECT_FILE_FORMAT_LAST = OBJECT_FILE_FORMAT_ELF_SPARC
+ OBJECT_FILE_FORMAT_LAST = OBJECT_FILE_FORMAT_MACH_O
} object_file_format_t;
+typedef enum elf_variant_t {
+ ELF_VARIANT_NORMAL,
+ ELF_VARIANT_SPARC
+} elf_variant_t;
+
/** The variable where the GAS dialect is stored. */
extern object_file_format_t be_gas_object_file_format;
extern bool be_gas_emit_types;
+extern elf_variant_t be_gas_elf_variant;
/**
* the .type directive needs to specify @function, #function or %function
- * depending on the target architecture (yay)
+ * depending on the target architecture
*/
extern char be_gas_elf_type_char;