This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]