How to limit the size of a program?

Pan ruochen panruochen@gmail.com
Tue Oct 14 09:47:00 GMT 2008


Hi All,
I want to limit the size of runtime code and data
(including .text, .data, .bss, .sbss sections) when linking a program.
I want LD to report an error if the size is larger than some specified
value (i.e. 0x4000). I guess this may be related to the linker script.
What should I do?

-------------
Best Regards,
PRC
Oct 14, 2008



More information about the Binutils mailing list