This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: Does gold support deadcode elimination on relocatable files


"Neo Jia" <neojia@gmail.com> writes:

>> After the garbage collection patch for executables is committed, it
>> would be perfectly reasonable to extend it by providing a mechanism
>> for specifying an explicit root set.  At that time it would be
>> reasonable to enable garbage collection for relocatable links when a
>> root set is specified.  This work would not require any significant
>> changes to the existing garbage collection work.
>
> As most relocatable files are used in SDK, can we just use the SDK
> header files to build the root set?

In general, yes, probably.  But, of course, my quoted paragraph
remains true.  I'll also note that gold will never have the ability to
read header files.

Ian


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