From: Avi Kivity <avi@redhat.com>
To: Naphtali Sprei <nsprei@redhat.com>
Cc: kvm@vger.kernel.org
Subject: Re: [qemu-kvm tests PATCH v2] qemu-kvm tests: fix linker script problem
Date: Wed, 05 May 2010 18:05:12 +0300 [thread overview]
Message-ID: <4BE18928.7030109@redhat.com> (raw)
In-Reply-To: <4BE1783C.6050202@redhat.com>
On 05/05/2010 04:53 PM, Naphtali Sprei wrote:
> commit 848bd0c89c83814023cf51c72effdbc7de0d18b7 causes the linker script
> itself (flat.lds) to become part of the linked objects, which messed
> the output file, specifically, the symbol edata is not the last symbol
> anymore.
>
>
> change v1 -> v2
> Instead of dropping the dependency, put it on a separate line/rule, so the
> lds file will not be considered as one of the dependencies in the linking line/rule.
>
>
>
> FLATLIBS = test/lib/libcflat.a $(libgcc)
> -%.flat: %.o $(FLATLIBS) flat.lds
> +%.flat: flat.lds
> +%.flat: %.o $(FLATLIBS)
> $(CC) $(CFLAGS) -nostdlib -o $@ -Wl,-T,flat.lds $^ $(FLATLIBS)
>
I don't think that works - $^ selects all prerequisites, not just the
ones in the line for the make rule.
prereq-%:
touch $@
dummy: prereq-1
dummy: prereq-2
echo $^
$ make dummy
touch prereq-2
touch prereq-1
echo prereq-2 prereq-1
prereq-2 prereq-1
--
error compiling committee.c: too many arguments to function
prev parent reply other threads:[~2010-05-05 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-05 13:53 [qemu-kvm tests PATCH v2] qemu-kvm tests: fix linker script problem Naphtali Sprei
2010-05-05 15:05 ` Avi Kivity [this message]
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=4BE18928.7030109@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=nsprei@redhat.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