LD crashing
Posted: Mon Apr 12, 2004 9:30 am
Below is my linker script, when I try to link with it, LD illegal ops (I'm using windows 98 SE). If I comment out the output format line it will work, it's only when I try to make LD output a binary file that it doesn't work. I have LD version 2.9.4 with BFD version 2.9.4 as well.
EDIT: LOL was in such a hurry I forgot the script :D *smacks self on forehead* I couldn't find a newer version for windows. They're up to 2.14, but I'm not interested in compiling a source tarball.
EDIT: LOL was in such a hurry I forgot the script :D *smacks self on forehead* I couldn't find a newer version for windows. They're up to 2.14, but I'm not interested in compiling a source tarball.
Code: Select all
/* link.ld */
OUTPUT_FORMAT("binary")
ENTRY(_main)
SECTIONS
{
???.text 0xA0000:
???{
??????code = .;_code = .;__code = .;
??????*(.text .rodata)
??????. = ALIGN(4096);
???}
???.data :
???{
??????data = .;_data = .;__data = .;
??????*(.data)
??????. = ALIGN(4096);
???}
???.bss :
???{
??????bss = .;_bss = .;__bss = .;
??????*(.bss)
??????. = ALIGN(4096);
???}
???end = .;_end = .;__end = .;
}