diff --git a/sys/kernel/ld.c b/sys/kernel/ld.c index a1e9b7f..ce28b72 100644 --- a/sys/kernel/ld.c +++ b/sys/kernel/ld.c @@ -44,11 +44,15 @@ int x = 0x0; int rel = 0x0; int sym = 0x0; + char *newLoc = 0x0; char *shStr = 0x0; char *dynStr = 0x0; + uint32_t *reMap = 0x0; + fileDescriptor_t *ldFd = 0x0; + Elf_Ehdr *binaryHeader = 0x0; Elf_Phdr *programHeader = 0x0; Elf_Phdr *programDynamic = 0x0; @@ -58,8 +62,6 @@ Elf_Rela *elfRela = 0x0; Elf_Addr addr; - kprintf( "Linker: %s", interp ); - /* Open our dynamic linker */ ldFd = fopen( interp, "rb" ); @@ -148,7 +150,8 @@ if( programHeader[i].p_filesz > 0 ) { - kprintf("[%s:%i] PT_GNU_STACK - p_vaddr: 0x%X, p_offset: 0x%X, p_filesz: 0x%X\n", __FILE__, __LINE__, programHeader[i].p_vaddr, programHeader[i].p_offset, programHeader[i].p_filesz ); + // XXX - not needed for LD + //kprintf("[%s:%i] PT_GNU_STACK - p_vaddr: 0x%X, p_offset: 0x%X, p_filesz: 0x%X\n", __FILE__, __LINE__, programHeader[i].p_vaddr, programHeader[i].p_offset, programHeader[i].p_filesz ); } @@ -251,25 +254,29 @@ if (sectionHeader[i].sh_addr == 0x0) break; - kprintf("[%s:%i] SHT_PROGBITS: 0x%X", __FILE__, __LINE__, sectionHeader[i].sh_name ); + // XXX - not needed for LD + //kprintf("[%s:%i] SHT_PROGBITS: 0x%X", __FILE__, __LINE__, sectionHeader[i].sh_name ); break; case SHT_HASH: - kprintf("[%s:%i] SHT_HASH", __FILE__, __LINE__); + // XXX - not needed for LD + //kprintf("[%s:%i] SHT_HASH", __FILE__, __LINE__); break; case SHT_DYNAMIC: - kprintf("[%s:%i] SHT_DYNAMIC", __FILE__, __LINE__); + // XXX - not needed for LD + //kprintf("[%s:%i] SHT_DYNAMIC", __FILE__, __LINE__); break; case SHT_SYMTAB: - kprintf("[%s:%i] SHT_SYMTAB", __FILE__, __LINE__); + // XXX - not needed for LD + //kprintf("[%s:%i] SHT_SYMTAB", __FILE__, __LINE__); break;