diff --git a/TODO b/TODO index 782b792..99b92cd 100644 --- a/TODO +++ b/TODO @@ -3,6 +3,7 @@ IMPORTANT FIRST THINGS TO DO Kernel Modules - Start on this for drivers and the like +ld.so loader - Share the ld.so read only pages to all applications Bring in ufs to kernel Set up an installer @@ -28,6 +29,9 @@ $Log$ +Revision 1.4 2004/09/20 07:33:10 reddawg +Start of kernel modules will make it much more flexable - These modules can be either in kernel threads or system services... + Revision 1.3 2004/07/15 12:10:57 reddawg Updated things todo diff --git a/src/sys/kernel/ld.c b/src/sys/kernel/ld.c index 156429b..5075db0 100644 --- a/src/sys/kernel/ld.c +++ b/src/sys/kernel/ld.c @@ -55,7 +55,8 @@ elfDynSym *relSymTab = 0x0; elfPltInfo *elfRel = 0x0; - ldFd = fopen("/ld.so","rb"); + /* Open our dynamic linker */ + ldFd = fopen("sys:/ld.so","rb"); if (ldFd == 0x0) { kprintf("Can not open ld.so\n"); @@ -80,7 +81,7 @@ fseek(ldFd,sectionHeader[binaryHeader->eShstrndx].shOffset,0); fread(shStr,sectionHeader[binaryHeader->eShstrndx].shSize,1,ldFd); - for (i=0;iePhnum;i++) { + for (i = 0x0;i < binaryHeader->ePhnum;i++) { switch (programHeader[i].phType) { case PT_LOAD: case PT_DYNAMIC: @@ -171,6 +172,9 @@ /*** $Log$ + Revision 1.35 2004/09/11 01:20:08 apwillia + Clean up 'Unhandled Header' printfs when compiled in linux + Revision 1.34 2004/09/07 22:00:20 apwillia Fix gcc 2.95 being retarded and not follwing the C99 specs