Right now, I am compiling my *.c and *.s files using my cross compiler (from the Bare Bones tutorials) and copy them into a bin/ directory. After that, I use the linker and try to get an ELF file containing my loader for the 64bit kernel. The following image shows the output with some code from the Bare Bones tutorial (This is the working code):
http://imagizer.imageshack.us/a/img922/9294/1HC3Pc.png
But after I add two more files to the loader (The ones marked in blue in my directory), the linker is creating a malfunctioning elf file, because the OS does not show anything anymore.
http://imagizer.imageshack.us/a/img924/2696/UT75Lt.png
I tried the following:
- - Change the order of the files which are linked in the end -> no changes in the OS
- Remove one of the additional files -> I can remove the bootstrap_paging.c file and it works fine, so I assume the problem is there somewhere
- Check for undefined symbols: No symbol is undefined
EDIT: To complete the post, I added the link to the broken OS > here <.