This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
How to limit the size of a program?
- From: "Pan ruochen" <panruochen at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 14 Oct 2008 17:47:10 +0800
- Subject: How to limit the size of a program?
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