link.ld help
Posted: Mon Sep 04, 2006 6:37 pm
ok, here is my link.ld
it makes a 4K, 4096byte binary file
can any one tell me how to get it to go to only the size i need even if it changes with out changing the file every change.
thanks
Code: Select all
OUTPUT_FORMAT("binary")
ENTRY(start)
phys = 0x00100000;
SECTIONS
{
.text phys : AT(phys) {
code = .;
*(.text)
. = ALIGN(4096);
}
.data : AT(phys + (data - code))
{
data = .;
*(.data)
. = ALIGN(4096);
}
.bss : AT(phys + (bss - code))
{
bss = .;
*(.bss)
. = ALIGN(4096);
}
end = .;
}
can any one tell me how to get it to go to only the size i need even if it changes with out changing the file every change.
thanks