|
From: | Oleg N. Cher |
Subject: | Re: [Tinycc-devel] TCC and "smart" linking |
Date: | Fri, 26 Oct 2012 17:47:43 +0300 |
User-agent: | Thunderbird 2.0.0.19 (Windows/20081209) |
Hi folks, Daniel Glöckner wrote:
I think what Oleg wants is implemented in GCC as -ffunction-sections -fdata-section in combination with ld's --gc-sections. Every global function and variable is placed in its own section and the linker drops all sections which can't be reached starting from the entry point.
Yes, you're absolutely right. To have more small binaries. Also requested to remove unused functions and variables that are not placed into a library.
Daniel
Oleg N. Cher, VEDAsoft Oberon Club http://zx.oberon2.ru
[Prev in Thread] | Current Thread | [Next in Thread] |