bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/14330] failure to link global hidden symbol


From: ccoutant at google dot com
Subject: [Bug gold/14330] failure to link global hidden symbol
Date: Mon, 09 Jul 2012 16:27:34 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=14330

--- Comment #5 from Cary Coutant <ccoutant at google dot com> 2012-07-09 
16:27:34 UTC ---
>> It looks like the symbol was discarded for some reason, and the error is
>> occurring because it is hidden.  My guess is that the error should be
>> suppressed--you should only be getting the warning about "relocation refers 
>> to
>> discarded section".  That warning is most likely about debug info, though 
>> it's
>> hard to know for sure.
>
> Thanks for the thoughts.  I wonder, though -- since the relocation seems to be
> coming from the use of the hidden symbol and not the definition, I don't see
> how it could be related to debug info.  But I'm also fairl ignorant about 
> these
> things.

This is a wild guess, but I think your asm code is getting placed in a
random section depending on the other options. Try adding a ".text"
statement in the function definition below:

DFGOperations.cpp:

asm (
".globl getHostCallReturnValue\n"
".hidden getHostCallReturnValue\n"
"getHostCallReturnValue:\n"
    "mov -40(%r13), %r13\n"
    "mov %r13, %rdi\n"
    "jmp getHostCallReturnValueWithExecState\n"
);

-cary

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- 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]