This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: -flto tests don't pick up libgloss code at link time


On Sun, Mar 6, 2011 at 6:52 AM, Anthony Green <green@moxielogic.com> wrote:
> On 3/6/2011 9:10 AM, H.J. Lu wrote:
>>
>> On Sun, Mar 6, 2011 at 5:57 AM, Dave Korn<dave.korn.cygwin@gmail.com>
>> ?wrote:
>>>
>>> On 06/03/2011 07:02, Anthony Green wrote:
>>>>
>>>> All of the -flto tests fail for moxie-elf...
>>>>
>>>> http://gcc.gnu.org/ml/gcc-testresults/2011-03/msg00399.html
>>>>
>>>> It turns out that this is because it fails to link with the code in
>>>> libgloss when I enable -flto.
>>>>
>>>> I link the test code with a special linker script (sim.ld) that pulls in
>>>> the libgloss code found in the moxie libgloss port's libsim.a.
>>>> Unfortunately it looks like this just doesn't happen with -flto. ?Any
>>>> ideas why?
>>>
>>> ?It's probably a bug. ?You're probably the first to try it.
>>>
>>
>> It may be related to
>>
>> http://sourceware.org/ml/binutils/2011-01/msg00108.html
>>
>> My lto-mixed branch has some support for linker scripts.
>>
>
> That looks right, HJ. ?Where do I find this branch?
>

http://git.kernel.org/?p=devel/binutils/hjl/x86.git;a=summary

-- 
H.J.


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