From: David McCullough Date: Sun, 17 Feb 2002 23:20:14 +0000 (+0000) Subject: Changes to compile under Solaris from The LEOX team . X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1e07b42d40090b542eceabe53b203d4a6967ca48;p=elf2flt.git Changes to compile under Solaris from The LEOX team . --- diff --git a/elf2flt.c b/elf2flt.c index bf6d20f..51e2314 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -31,16 +31,24 @@ * krab@california.daimi.aau.dk */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "flat.h" +#include /* Userland pieces of the ANSI C standard I/O package */ +#include /* Userland prototypes of the ANSI C std lib functions */ +#include /* Allows va_list to exist in the these namespaces */ +#include /* Userland prototypes of the string handling funcs */ +#include +#include /* Userland prototypes of the Unix std system calls */ +#include /* Flag value for file handling functions */ + +#include /* Consts and structs defined by the internet system */ + +/* from $(INSTALLDIR)/include */ +#include /* Main header file for the BFD library */ + +#include /* TARGET_* ELF support for the BFD library */ + +/* from uClinux-x.x.x/include/linux */ +#include "flat.h" /* Binary flat header description */ + #ifdef TARGET_v850e #define TARGET_v850 diff --git a/flat.h b/flat.h index f5d485d..ab0d53a 100644 --- a/flat.h +++ b/flat.h @@ -42,6 +42,7 @@ struct flat_hdr { #define FLAT_FLAG_GZDATA 0x0008 /* only data/relocs are compressed (for XIP) */ +#ifdef __KERNEL__ /* so systems without linux headers can compile the apps */ /* * While it would be nice to keep this header clean, users of older * tools still need this support in the kernel. So this section is @@ -79,4 +80,6 @@ typedef union { } reloc; } flat_v2_reloc_t; +#endif + #endif /* _LINUX_FLAT_H */ diff --git a/flthdr.c b/flthdr.c index d18215e..6c005aa 100644 --- a/flthdr.c +++ b/flthdr.c @@ -7,10 +7,14 @@ */ /****************************************************************************/ -#include -#include -#include -#include "flat.h" +#include /* Userland pieces of the ANSI C standard I/O package */ +#include /* Userland prototypes of the Unix std system calls */ + +/* macros for conversion between host and (internet) network byte order */ +#include /* Consts and structs defined by the internet system */ + +/* from uClinux-x.x.x/include/linux */ +#include "flat.h" /* Binary flat header description */ /****************************************************************************/