[PATCH] Re: more plugin testsuite issues

Dave Korn dave.korn.cygwin@gmail.com
Thu Nov 4 19:48:00 GMT 2010


On 04/11/2010 16:35, Dave Korn wrote:

>   Ah, hang on, I just discovered ld_simple_link_defsyms.  If I use that, is it
> meant to guarantee I have enough symbols defined to link an object file
> without needing any crt startup objects or libraries?  Maybe all I need do is
> add "__main" to the list there, and not use any (particularly $HOSTING) libs
> or crt0 at all in this test.  Does that sound right?

  This looks better to me.  Tested natively on i686-pc-cygwin and
i686-pc-linux-gnu, and cross from i686-pc-cygwin to i686-pc-mingw32.

ld/testsuite/ChangeLog:

	* ld-plugin/plugin.exp (testobjfiles): Dont use HOSTING_CRT0.
	(testobjfiles_notext): Likewise.
	(libs): Don't use HOSTING_LIBS; fill with default symbol defs instead.

	* lib/ld-lib.exp (ld_simple_link_defsyms): Add cygming clause.

  What do you think?  OK for head?

    cheers,
      DaveK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin-test-libs-fix.diff
Type: text/x-c
Size: 2129 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20101104/22249e2d/attachment.bin>


More information about the Binutils mailing list