diff options
Diffstat (limited to 'lcc/lin-elf.c')
-rw-r--r-- | lcc/lin-elf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lcc/lin-elf.c b/lcc/lin-elf.c index 693309f..2f15de3 100644 --- a/lcc/lin-elf.c +++ b/lcc/lin-elf.c @@ -8,19 +8,19 @@ #define NASMPATH "/usr/local/bin/nasm" -char *cpp[] = { LCCDIR "cpp", "-D__STDC__=1", +int8_t *cpp[] = { LCCDIR "cpp", "-D__STDC__=1", "-D__ELF__", "-Di386", "-D__i386", "-D__i386__", "-Dlinux", "-D__linux", "-D__linux__", "$1", "$2", "$3", 0 }; -char *include[] = { "-I" LCCDIR "include", "-I/usr/local/include", +int8_t *include[] = { "-I" LCCDIR "include", "-I/usr/local/include", "-I/usr/include", 0 }; -char *com[] = { LCCDIR "rcc", "-target=x86/nasm", +int8_t *com[] = { LCCDIR "rcc", "-target=x86/nasm", "$1", "$2", "$3", 0 }; -char *as[] = { NASMPATH, "-a", "-felf", "-o", "$3", "$1", "$2", 0 }; -char *ld[] = { "/usr/bin/ld", "-m", "elf_i386", +int8_t *as[] = { NASMPATH, "-a", "-felf", "-o", "$3", "$1", "$2", 0 }; +int8_t *ld[] = { "/usr/bin/ld", "-m", "elf_i386", "-dynamic-linker", "/lib/ld-linux.so.1", "-L/usr/i486-linux/lib", "-o", "$3", "$1", @@ -28,12 +28,12 @@ char *ld[] = { "/usr/bin/ld", "-m", "elf_i386", "$2", "", "-lc", "", "/usr/lib/crtend.o", "/usr/lib/crtn.o", 0 }; -static char *bbexit = LCCDIR "bbexit.o"; +static int8_t *bbexit = LCCDIR "bbexit.o"; -extern char *concat(char *, char *); -extern int access(const char *, int); +extern int8_t *concat(int8_t *, int8_t *); +extern int access(const int8_t *, int); -int option(char *arg) +int option(int8_t *arg) { if (strncmp(arg, "-lccdir=", 8) == 0) { cpp[0] = concat(&arg[8], "/cpp"); |