diff -urP lha-114i/Makefile lha-114i-eota/Makefile
--- lha-114i/Makefile	Fri Dec 15 21:13:16 2000
+++ lha-114i-eota/Makefile	Fri Jan 25 00:26:57 2002
@@ -15,15 +15,16 @@
 
 #CC			= cc
 CC			= gcc
-SWITCHES	= -DNEED_INCREMENTAL_INDICATOR \
- -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
+#SWITCHES	= -DNEED_INCREMENTAL_INDICATOR \
+# -DTMP_FILENAME_TEMPLATE="\"/tmp/lhXXXXXX\""
 
 #MACHINE     = -DSYSTIME_HAS_NO_TM -DFTIME -DEUC
 #MACHINE     = -DSYSTIME_HAS_NO_TM -DEUC -DHAVE_TM_ZONE -DSYSV_SYSTEM_DIR
-MACHINE     = -DSYSTIME_HAS_NO_TM -DEUC -DSYSV_SYSTEM_DIR -DMKTIME
+MACHINE     = -DEOTA -DNOFTRUNCATE -DSYSTIME_HAS_NO_TM -DEUC -DSYSV_SYSTEM_DIR -DHAVE_NO_LCHOWN -DMKTIME
 
 #OPTIMIZE	= -O2 -fstrength-reduce -fomit-frame-pointer
-OPTIMIZE	= -O2 -DSUPPORT_LH7 -DMKSTEMP
+#OPTIMIZE	= -O2 -DSUPPORT_LH7 -DMKSTEMP
+OPTIMIZE	= -O2 -fno-builtin #-DSUPPORT_LH7
 
 BINDIR = /usr/local/bin
 MANDIR = /usr/local/man
diff -urP lha-114i/src/Makefile lha-114i-eota/src/Makefile
--- lha-114i/src/Makefile	Fri Dec 15 21:13:15 2000
+++ lha-114i-eota/src/Makefile	Tue Jan 22 16:47:02 2002
@@ -19,19 +19,27 @@
 # V0.05  Beta Version  Final			1992.02.17  Masaru Oki
 ##############################################################################
 
+STARTADDR=0x00001000
+NENTRY=_start
+NEWLIB=../../../libc/newlib-1.8.1-eota/eota/newlib
+NLIBS=$(NEWLIB)/crt0.o $(NEWLIB)/libc.a
+NKERNLIBS=../../../EOTA-CUR/kernel/POSIX/libc/libnative.a
+LDFLAGS = -Bstatic -s
+
 LHOBJS		= lharc$(O) lhadd$(O) lhlist$(O) lhext$(O) header$(O)
 HUFOBJS		= append$(O) crcio$(O) dhuf$(O) extract$(O) huf$(O) \
 		  larc$(O) maketbl$(O) maketree$(O) shuf$(O) slide$(O) \
-		  util$(O)
+		  util$(O) eota$(O)
 
 OBJS		= $(LHOBJS) $(HUFOBJS) $(LIBRARYOBJS)
 
-CFLAGS		= $(OPTIMIZE) $(SWITCHES) $(MACHINE)
+CFLAGS		= $(OPTIMIZE) $(SWITCHES) $(MACHINE) -I$(NEWLIB)/targ-include -I$(NEWLIB)/libc/include
 
 all : lha
 
 lha	: $(OBJS)
-	$(CC) -o $@ $(OBJS) $(LDFLAGS) 
+	ld $(LDFLAGS) -o $@ -e ${NENTRY} -Ttext=$(STARTADDR) $(OBJS) $(NLIBS) $(NKERNLIBS)
+#	$(CC) -o $@ $(OBJS) $(LDFLAGS) 
 
 $(LHOBJS) append$(O) slide$(O) extract$(O) : lha.h lha_macro.h
 
diff -urP lha-114i/src/eota.c lha-114i-eota/src/eota.c
--- lha-114i/src/eota.c	Thu Jan  1 09:00:00 1970
+++ lha-114i-eota/src/eota.c	Tue Jan 22 16:47:02 2002
@@ -0,0 +1,7 @@
+int lstat(const char *file_name, struct stat *buf)
+{
+        return stat(file_name, buf);
+}
+
+int readlink() { return 0; }
+int symlink() { return -1; }
diff -urP lha-114i/src/lha_macro.h lha-114i-eota/src/lha_macro.h
--- lha-114i/src/lha_macro.h	Wed Oct  4 23:57:38 2000
+++ lha-114i-eota/src/lha_macro.h	Tue Jan 22 16:47:02 2002
@@ -41,6 +41,7 @@
 #endif	/* not SYSV_SYSTEM_DIR */
 #endif  /* NODIRECTORY */
 
+
 /* ------------------------------------------------------------------------ */
 /*	Other Define															*/
 /* ------------------------------------------------------------------------ */
diff -urP lha-114i/src/lhext.c lha-114i-eota/src/lhext.c
--- lha-114i/src/lhext.c	Wed Oct  4 23:57:38 2000
+++ lha-114i-eota/src/lhext.c	Fri Jan 25 00:27:41 2002
@@ -155,7 +155,7 @@
 	    || hdr->extend_type == EXTEND_OS68K
 	    || hdr->extend_type == EXTEND_XOSK) {
 #ifdef NOT_COMPATIBLE_MODE
-		Please need your modification in this space.
+	  /* Please need your modification in this space. */
 #else
 		if ((hdr->unix_mode & UNIX_FILE_TYPEMASK) != UNIX_FILE_SYMLINK)
 			chmod(name, hdr->unix_mode);
diff -urP lha-114i/src/util.c lha-114i-eota/src/util.c
--- lha-114i/src/util.c	Wed Oct  4 23:57:38 2000
+++ lha-114i-eota/src/util.c	Tue Jan 22 16:47:02 2002
@@ -229,7 +229,7 @@
  * Masaru Oki 92.01.28 added mkdir() and rmdir() by Tomohiro Ishikawa
  */
 
-#if defined(NOFTRUNCATE) && !defined(_MINIX)
+#if defined(NOFTRUNCATE) && !defined(_MINIX) && !defined(EOTA)
 
 /* ------------------------------------------------------------------------ */
 int
