From 30c6a241e88499f536e86d325759e29ba00ff67f Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Fri, 15 Feb 2008 20:09:01 +0100 Subject: Wipe out assembler warnings while compiling x86 biosemu This patch tries to get rid of some assembler warnings about changed .got2 section type while compiling x86 bios emulator code. Signed-off-by: Anatolij Gustschin --- drivers/bios_emulator/include/x86emu.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/bios_emulator/include') diff --git a/drivers/bios_emulator/include/x86emu.h b/drivers/bios_emulator/include/x86emu.h index 6004beb05d..a70a76874b 100644 --- a/drivers/bios_emulator/include/x86emu.h +++ b/drivers/bios_emulator/include/x86emu.h @@ -53,6 +53,16 @@ typedef u16 X86EMU_pioAddr; /*---------------------- Macros and type definitions ----------------------*/ +#if defined (CONFIG_ARM) +#define GAS_LINE_COMMENT "@" +#elif defined(CONFIG_MIPS) || defined(CONFIG_PPC) +#define GAS_LINE_COMMENT "#" +#elif defined (CONFIG_SH) +#define GAS_LINE_COMMENT "!" +#endif + +#define GOT2_TYPE ".got2,\"aw\"\t"GAS_LINE_COMMENT + #pragma pack(1) /**************************************************************************** -- cgit