--gc-sections and C library linkage issues (?)

Ulrich Drepper drepper@redhat.com
Thu Aug 24 19:54:00 GMT 2000


Alan Modra <alan@linuxcare.com.au> writes:

> You should be able to do this with a reference to the section symbol
> from any section that you know will escape garbage collection.

No, this is not how it's supposed to work.  Different .o files
constribute to special sections but only if the functions in those .o
files are used.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Binutils mailing list