From 0638193769f07bb4851d500b11186a05fda24b65 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 27 Jun 2009 21:10:09 -0700 Subject: [PATCH] outelf.c: add appropriate #ifdefs Only build outelf.c if ELF32 or ELF64 is included. Signed-off-by: H. Peter Anvin --- output/outelf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/output/outelf.c b/output/outelf.c index d13fb98a..69915156 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -9,11 +9,14 @@ #include #include "nasm.h" +#include "outform.h" #include "output/elfcommon.h" #include "output/dwarf.h" #include "output/outelf.h" +#if defined(OF_ELF32) || defined(OF_ELF64) + const struct elf_known_section elf_known_sections[] = { { ".text", SHT_PROGBITS, SHF_ALLOC|SHF_EXECINSTR, 16 }, { ".rodata", SHT_PROGBITS, SHF_ALLOC, 4 }, @@ -27,3 +30,5 @@ const struct elf_known_section elf_known_sections[] = { { ".comment", SHT_PROGBITS, 0, 1 }, { NULL, SHT_PROGBITS, SHF_ALLOC, 1 } /* default */ }; + +#endif /* defined(OF_ELF32) || defined(OF_ELF64) */ -- 2.11.4.GIT