Sorry for replying now, but I think you still might learn something.
LPeter wrote:
I use linux and I compiled this on a windows laptop.
What? What is that supposed to be? A Windows laptop? I thought that you use Linux?
LPeter wrote:
Does anyone have an idea what could be the problem?
Everybody on here who's decent at OSdeving will tell you that you didn't give enough information. What's your compiler? What parts of the headers are your exactly parsing, which information is used for what? Do you use a linker script? What are your compiler flags?
Lastly, I'm one of these guys who's too lazy to download a file and disassemble it. Providing the relevant parts as short snippets here would help me a lot, which, in turn, could have helped you a lot.
Please note: I'm just giving you some advice that will definitely help you. It's not meant to insult you in any way as a person or programmer.