Ld & Ar errors

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.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Ld & Ar errors

Post by Pype.Clicker »

can we see your linker script ? could it possibly have "*.o" instructions and miss " *.lib" ?
Slasher

Re:Ld & Ar errors

Post by Slasher »

I have the standard script

outputformat(binary)
entry.....(set to kernel main)
.text: {
*(.text)
}
.data: {
*(.data)
*(.common)
}
.bss:{
*(.bss)
}

this is the structure(not the real one, i'm not at home so can't copy it word for word)
but the text,data and bss are exact.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Ld & Ar errors

Post by Pype.Clicker »

really really weird ... does it work when you just ask "ld *.o ..." and skip the library step ?
Slasher

Re:Ld & Ar errors

Post by Slasher »

Yep, without a hitch!
Post Reply