This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linker problems


Hello.
Running Debian Sid, with latest unstable gcc and binutils (currently
binutils-gold). I am trying to compile Bran's kernel. You can find the
tutorial and source by googling

"bran's kernel development tutorial",

Or just download it: http://www.osdever.net/bkerndev/bkerndev.zip
Code is about 5 years old (2005).

I have made a Linux Makefile, and both NASM and GCC work fine.
LD however (regardless it's the gold version or older):

ld: error: start.o:1:1: invalid character
ld: error: load segment overlap [0x0 -> 0xb80] and [0x0 -> 0x1000]
ld: warning: cannot find entry symbol 'start'

In addition:
ld: isrs.o: in function isrs_install:isrs.c(.text+0x362): error: undefined
reference to 'isr31'

The last one is a sample, it gives a similar error for every "extern"
function in the source.

What could be the problem? And the fix? Since I suppose this would've
worked back in 2005.
Thanks.

-AB


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]