Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 2 > ld parameter --...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 322 of 374
Post > Topic >>

ld parameter --gc-sections

by "Tom Breeden" <tmb@[EMAIL PROTECTED] > Feb 1, 2007 at 08:40 AM

>>> On 1/21/2007 at 11:41 AM, Marco van de Voort<marcov@[EMAIL PROTECTED]
> wrote:
> On 2007-01-21, Tom Breeden <tmb@[EMAIL PROTECTED]
> wrote:
>>
>> At the module level, I am just linking in all the procedures of a 
>> module,
>> whether actually called by the built program or not. 
> 
> If you put everything into correct sections, make your tables 
> symbolic, you might be able to use ld parameter --gc-sections.

I had a look at the docs I have for "ld" 
and there is a pretty terse
mention of the "garbage collect sections" 
switch.

Where does one find fuller do***entation on "ld" 
(and other GNU utils)? Do people just get the source 
code and study it?

My guess is that this might remove entire 
sections if there is no reference to symbols 
in them, and would thus require that each 
procedure reside in its own named section (?).
That does not seem to be the C practice to 
have so many named sections. I've been a bit
nervous that I have each module in a different
section now. There might be some bad side effects
of having hundreds (or thousands) of sections for
"ld" in a big program. (?)

Tom
 




 8 Posts in Topic:
ld parameter --gc-sections
"Tom Breeden" &  2007-02-01 08:40:38 
Re: ld parameter --gc-sections
shaimee11@[EMAIL PROTECTE  2007-02-01 06:42:38 
Re: ld parameter --gc-sections
comp.lang.modula2@[EMAIL   2007-02-01 17:21:13 
Re: ld parameter --gc-sections
Martin Whitaker <news@  2007-02-01 23:25:34 
Re: ld parameter --gc-sections
comp.lang.modula2@[EMAIL   2007-02-02 09:58:44 
Re: ld parameter --gc-sections
Martin Whitaker <news@  2007-02-03 18:43:09 
Re: ld parameter --gc-sections
Marco van de Voort <ma  2007-02-01 20:37:12 
Re: ld parameter --gc-sections
"Tom Breeden" &  2007-02-05 11:13:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 18 22:58:15 CDT 2008.