Anyway, here's the command line and error:
Code: Select all
root@##-systems$ ld link.ld -o vfirmA01.bin setup.o panic.o main.o VFxcns1s.o VFxcns1bs.o VFxcys1k.o
ld: section .data [00000000001001d5 -> 00000000001011d4] overlaps section .text [0000000000100000 -> 0000000000101fff]
ld: vfirmA01.bin: Not enough room for program headers (allocated 2, need 3)
ld: final link failed: Bad value
Code: Select all
OUTPUT_FORMAT("binary")
ENTRY(start)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
code = .;
*(.text)
*(.rodata)
. = ALIGN(4096);
}
.data : AT(phys + (data - code))
{
data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(phys + (bss - code))
{
bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .;
}
Anyway, maybe I've missed something very, VERY obvious. Any suggestions?
Thanks,
Casnix