From: Ian Lance Taylor <iant@google.com>
To: Viktor Kutuzov <vkutuzov@accesssoftek.com>
Cc: <binutils@sourceware.org>
Subject: Re: Gold: Testsuite
Date: Tue, 01 Sep 2009 00:46:00 -0000 [thread overview]
Message-ID: <m3tyznpk4o.fsf@google.com> (raw)
In-Reply-To: <45333C62A387488E9C744D87C5BDF4C5@andreic6e7fe55> (Viktor Kutuzov's message of "Mon\, 31 Aug 2009 15\:30\:17 -0700")
Viktor Kutuzov <vkutuzov@accesssoftek.com> writes:
> Sorry for a dumb question.
> I'm trying to figure out how to use the gold testsuite for platform-specific things.
> It doesn't seem like it fits well.
>
> Could anyone point me to any existing and working unit test for any platform-dependent reallocation, please?
It's not a dumb question. There are two ways to approach this. The
first is to see if there is any to generate the relocation using
ordinary C code. If so, write a test case in C which verifies that it
does the right thing, or simply extend the existing basic_test.cc.
basic_test.cc tests various different cases, but it does not test
different type sizes.
If the relocation can not be generated using ordinary C code, then you
have to use AM_CONDITIONAL in configure.ac to generate a new Makefile
conditional, and test it in testsuite/Makefile.am to control use of an
assembler test case.
Ian
next prev parent reply other threads:[~2009-09-01 0:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 15:09 [PATCH] gold: add cast to gold_unreachable to workaround gcc giving invalid "no return statement" warnings Mikolaj Zalewski
2009-08-14 8:34 ` Ian Lance Taylor
2009-08-14 9:28 ` Mikolaj Zalewski
2009-08-14 9:36 ` Ian Lance Taylor
2009-08-31 21:49 ` [PATCH] Gold: Added R_ARM_ABS8 relocation Viktor Kutuzov
2009-08-31 23:52 ` Gold: Testsuite Viktor Kutuzov
2009-09-01 0:46 ` Ian Lance Taylor [this message]
2009-09-01 1:02 ` Viktor Kutuzov
2009-09-01 2:10 ` Ian Lance Taylor
[not found] ` <6AE1604EE3EC5F4296C096518C6B77EEE56FBF60@mail.accesssoftek.com>
2009-09-02 1:31 ` Viktor Kutuzov
2009-09-01 0:56 ` [PATCH] Gold: Added R_ARM_ABS8 relocation Ian Lance Taylor
2009-09-01 19:53 ` [PATCH Take 2] " Viktor Kutuzov
2009-09-01 21:24 ` Ian Lance Taylor
2009-09-02 1:30 ` [PATCH] Gold: Added R_ARM_ABS8 relocation unit test Viktor Kutuzov
2009-09-16 0:23 ` [PATCH] Gold: Added R_ARM_GOT_PREL relocation and unit tests Viktor Kutuzov
2009-09-16 1:00 ` [Gold] Heads up. Working on interworking Viktor Kutuzov
2009-10-06 21:46 ` [GOLD] Heads up. Gold for mingw Viktor Kutuzov
2009-10-06 22:02 ` Vincent R.
2009-10-06 22:26 ` Viktor Kutuzov
2009-10-06 22:06 ` Matt Rice
2009-10-07 15:31 ` [PATCH] Gold: Added R_ARM_GOT_PREL relocation and unit tests Ian Lance Taylor
[not found] ` <6AE1604EE3EC5F4296C096518C6B77EEE56FBF62@mail.accesssoftek.com>
2009-09-03 23:26 ` [PATCH, Take 2] Gold: Added R_ARM_ABS8 relocation unit test Viktor Kutuzov
2009-09-27 7:35 ` Ian Lance Taylor
2009-09-29 23:30 ` Viktor Kutuzov
2009-09-29 23:40 ` Ian Lance Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3tyznpk4o.fsf@google.com \
--to=iant@google.com \
--cc=binutils@sourceware.org \
--cc=vkutuzov@accesssoftek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).