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.
dukedevon
Posts: 21 Joined: Thu Jul 08, 2010 10:02 am
Location: Karlsruhe, Germany
Contact:
Post
by dukedevon » Fri Jul 09, 2010 3:45 am
I try to link a compiled c++ kernel as described
here
link.ld fails with the following error:
Code: Select all
opened script file .\link.ld
using external linker script:
==================================================
OUTPUT_FORMAT("binary")
ENTRY(start)
SECTIONS
{
.text 0x100000 :
{
code = .; _code = .; __code = .;
*(.text)
. = ALIGN(4096);
}
.bss :
{
bss = .; _bss = .; __bss = .;
*(.bss)
. = ALIGN(4096);
}
.data :
{
__CTOR_LIST__ = .; LONG((__CTOR_END__-__CTOR_LIST__) / 4 - 2) *(.ctors) LONG(0) __CTOR_END__ = .;
__DTOR_LIST__ = .; LONG((__DTOR_END__-__DTOR_LIST__) / 4 - 2) *(.dtors) LONG(0) __DTOR_END__ = .;
data =.; _data = .; __data = .;
*(.data)
. = ALIGN(4096);
}
end =.; _end =.; __end = .;
}
==================================================
attempt to open data failed
c:/djgpp/bin/ld.exe: cannot find data
Googleing the issue didn't help me. Any ideas?
(Sorry for my bad english)
FlExOS --- Stay tuned
qw
Member
Posts: 792 Joined: Mon Jan 26, 2009 2:48 am
Post
by qw » Fri Jul 09, 2010 5:39 am
What is the command line you invoke LD with?
dukedevon
Posts: 21 Joined: Thu Jul 08, 2010 10:02 am
Location: Karlsruhe, Germany
Contact:
Post
by dukedevon » Fri Jul 09, 2010 5:43 am
Windoze Powershell
FlExOS --- Stay tuned
qw
Member
Posts: 792 Joined: Mon Jan 26, 2009 2:48 am
Post
by qw » Fri Jul 09, 2010 5:48 am
With command line I mean something like "ld -T link.ld ..."
dukedevon
Posts: 21 Joined: Thu Jul 08, 2010 10:02 am
Location: Karlsruhe, Germany
Contact:
Post
by dukedevon » Sat Jul 10, 2010 3:15 am
Code: Select all
ld --verbose -T link.ld -o kernel.bin loader.o main.o Video.o
FlExOS --- Stay tuned
qw
Member
Posts: 792 Joined: Mon Jan 26, 2009 2:48 am
Post
by qw » Mon Jul 12, 2010 1:44 am
I see the problem is solved already. Could you tell us what it was and how you solved it?
dukedevon
Posts: 21 Joined: Thu Jul 08, 2010 10:02 am
Location: Karlsruhe, Germany
Contact:
Post
by dukedevon » Mon Jul 12, 2010 2:50 am
I forgot to compile one of the files. Sorry for bothering this forum. I was very tired and not able to find the issue myself.
FlExOS --- Stay tuned