This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Re: more plugin testsuite issues
On 16/11/2010 23:01, Alan Modra wrote:
> On Tue, Nov 16, 2010 at 11:00:09PM +0100, Andreas Schwab wrote:
>> Dave Korn <dave.korn.cygwin@gmail.com> writes:
>>
>>> +# Rather than having libs we just define dummy values for anything
>>> +# we may need to link a target exe; we aren't going to run it anyway.
>>> +set libs "[ld_simple_link_defsyms] --defsym ${_}printf=0 --defsym ${_}puts=0"
>> That does not work.
>>
>> /home/andreas/src/binutils/binutils/ld/testsuite/ld-plugin/main.c:11: relocation truncated to fit: R_PPC_REL24 against symbol `puts' defined in *ABS* section in tmpdir/main.x
>
> That reminds me. I've had this in my tree for a while but hadn't
> committed it.
>
> * ld-plugin/plugin.exp: Define printf and puts as main.
Ah, excellent. That was what I was going to ask Andreas if it worked.
cheers,
DaveK