Code: Select all
ld -T link.ld -o kernelcode.bin file1.o file2.o
Code: Select all
OUTPUT_FORMAT("binary")
ENTRY(start)
SECTIONS
{
.text 0x1000 :
{
*(.text)
}
.data :
{
*(.data)
}
.bss :
{
*(.bss)
}
}
Code: Select all
ld -T link.ld -o kernelcode.bin file1.o file2.o
Code: Select all
OUTPUT_FORMAT("binary")
ENTRY(start)
SECTIONS
{
.text 0x1000 :
{
*(.text)
}
.data :
{
*(.data)
}
.bss :
{
*(.bss)
}
}
Code: Select all
INPUT
(
ObjFile1.o
ObjFile2.o
ObjFile3.o
ObjFile4.o
ObjFile5.o
/* ... */
)
Code: Select all
ld -T link.ld -o kernelcode.bin *.o
You have my sympathy! I went through all that that last week with my wife and boy. Then, to add insult to injury, you catch the damn thing yourselfSolar wrote:Second day of staying at home, caring for the wife (flu) and catering for the kids, and already my brain is guacamole mush.
Code: Select all
ld -T link.ld -o kernelcode.bin @files.txt