bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17592] x86-64 linker generates wrong PLT for large model


From: hjl.tools at gmail dot com
Subject: [Bug ld/17592] x86-64 linker generates wrong PLT for large model
Date: Tue, 18 Nov 2014 14:59:23 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17592

--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Michael Matz from comment #5)
> (In reply to H.J. Lu from comment #4)
> > When there is a large readonly section,  it makes no differences between
> > 
> > text, plt, readonly, got
> > 
> > and
> > 
> > text, readonly, plt, got
> > 
> > since text needs to reach plt and plt needs to reach got.
> 
> Yes, but text reaching PLT is trivial with the large code model.  But PLT
> reaching GOT requires changing the PLT layout.  The reason for my idea
> of moving the PLT was to avoid doing that.  And with a large readonly only
> the latter layout achieves that.  So I think that should be the default
> layout.

I also want to support larger code size in small model.  Put .plt after .text
will help small model.  I will implement large PLT for large model.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]