public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Linker flag : --gc-section
@ 2000-08-08 14:44 Fabrice Gautier
  2000-08-08 14:51 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Gautier @ 2000-08-08 14:44 UTC (permalink / raw)
  To: Ecos-List (E-mail)

Hi,

This option is present in the example Makefile and I'm wondering what does
this ld option does?

I've just noticed that with this option I don't have undefined references
where I should have ....

Thanks

A+
-- 
Fabrice Gautier
fabrice_gautier@sdesigns.com 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Linker flag : --gc-section
  2000-08-08 14:44 [ECOS] Linker flag : --gc-section Fabrice Gautier
@ 2000-08-08 14:51 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2000-08-08 14:51 UTC (permalink / raw)
  To: Fabrice Gautier; +Cc: Ecos-List (E-mail)

Fabrice Gautier wrote:
> 
> Hi,
> 
> This option is present in the example Makefile and I'm wondering what does
> this ld option does?
> 
> I've just noticed that with this option I don't have undefined references
> where I should have ....

It garbage collects unused code and data for any objects compiled with any
of the options "-ffunction-sections -fdata-sections -fvtable-gc".

It only removes code/data that isn't referenced - you should still get
undefined references *if* the function/data the non-existant symbol is
referenced from is present. If the function/data a non-existant symbol is
referenced from isn't present, you won't get any undefined references to
it.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-08-08 14:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-08 14:44 [ECOS] Linker flag : --gc-section Fabrice Gautier
2000-08-08 14:51 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).