Weird linker!

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Beginner

Weird linker!

Post by Beginner »

as I made a new function, of course I made a new file.. the problem is that when I try to link it with:
ld -T link.ld -o kernel.bin ALl the files
it says "Cannot run the program" or something..and I am able to compile the files and there?s nothing different in this new file from my old.. I just cant link it for some reason.. really need help
Beginner

Re:Weird linker!

Post by Beginner »

As I thought, it seems like you cant use as many arguments as you?d like to (win xp)... but that?s a problem, I pass the files as arguments to the linker, and I need to pass lots and lots of files
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Weird linker!

Post by Solar »

How about:

ld -T link.ld -o kernel.bin *.o

Or even better, use 'ar' to combine multiple object files into a linker archive...
Every good solution is obvious once you've found it.
Post Reply