diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-02-03 12:06:04 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-02-03 12:08:59 -0800 |
commit | 04633d07b68b79207d4800a4db7ba89394c33d0e (patch) | |
tree | 941aba7bebb475ca20a259e9e975e53033cfcc4f /output/outform.h | |
parent | a56b70436e2a79c6bd5548acc71c0f18c3a28354 (diff) | |
download | nasm-04633d07b68b79207d4800a4db7ba89394c33d0e.tar.gz |
backend: add support for x32 ELF
Add an x32 ELF (32-bit code with the CPU in 64-bit mode) backend.
Diffstat (limited to 'output/outform.h')
-rw-r--r-- | output/outform.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/output/outform.h b/output/outform.h index 4b809b7b..d37a61b4 100644 --- a/output/outform.h +++ b/output/outform.h @@ -106,6 +106,9 @@ #ifndef OF_ELF32 #define OF_ELF32 #endif +#ifndef OF_ELFX32 +#define OF_ELFX32 +#endif #ifndef OF_ELF64 #define OF_ELF64 #endif @@ -179,6 +182,9 @@ #ifndef OF_ELF64 #define OF_ELF64 #endif +#ifndef OF_ELFX32 +#define OF_ELFX32 +#endif #endif #ifdef OF_OTHERS @@ -215,6 +221,9 @@ #ifdef OF_NO_ELF64 #undef OF_ELF64 #endif +#ifdef OF_NO_ELFX32 +#undef OF_ELFX32 +#endif #ifdef OF_NO_AOUT #undef OF_AOUT #endif @@ -260,6 +269,7 @@ extern struct ofmt of_aout; extern struct ofmt of_aoutb; extern struct ofmt of_coff; extern struct ofmt of_elf32; +extern struct ofmt of_elfx32; extern struct ofmt of_elf64; extern struct ofmt of_as86; extern struct ofmt of_obj; @@ -299,6 +309,9 @@ static struct ofmt *drivers[] = { #ifdef OF_ELF64 &of_elf64, #endif +#ifdef OF_ELFX32 + &of_elfx32, +#endif #ifdef OF_AS86 &of_as86, #endif |