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: PATCH: Fix linker plugin support for gnu linker


On Wed, Jan 5, 2011 at 8:47 AM, Ian Lance Taylor <iant@google.com> wrote:
> "H.J. Lu" <hongjiu.lu@intel.com> writes:
>
>> This patch fixes linker plugin support for gnu linker with 2 stage
>> linking and supports mixed LTO objects:
>
> For the record, I repeat my objections to 2 stage linking and suggest
> instead implementing my alternate approach described here:
>
> http://gcc.gnu.org/ml/gcc/2010-12/msg00347.html
>

While I consider that is a hack, I don't object it since it
can co-exist with 2 stage linking.  Gold can implement
your approach and I will keep 2 stage linking in bfd linker
in the Linux binutils.

With 2 stage linking, everything just works. It works
with the current and future GCC.  It does require an extra
pass. But the first pass is simple and the second pass is
very straight forward.  The additional linker time only takes a
very small percentage in the whole LTO linking process.

-- 
H.J.


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