From: Richard Henderson <rth@twiddle.net>
To: Ed Maste <emaste@freebsd.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [RFT PATCH] configure: Simplify alternate .text segment
Date: Wed, 19 Jun 2013 13:09:37 -0700 [thread overview]
Message-ID: <51C21001.60601@twiddle.net> (raw)
In-Reply-To: <CAPyFy2C0G=O1hGLpz_1DD_Tgxn6GpyNpCwPR023ZKaBzD42_Vg@mail.gmail.com>
On 06/19/2013 12:57 PM, Ed Maste wrote:
> Sounds good, although we need to pick up __executable_start too I
> think; from my ld --verbose:
> # PROVIDE (__executable_start = 0x400000); . = 0x400000 + SIZEOF_HEADERS;
>
> How about this?
>
> $ld --verbose | sed \
> -e '1,/==================================================/d' \
> -e '/==================================================/,$d' \
> -e "s/[.] = .* [+] SIZEOF_HEADERS/. = $textseg_addr + SIZEOF_HEADERS/" \
> -e "s/__executable_start = [0-9x]*/__executable_start =
> $textseg_addr/" > config-host.ld
Looks good. Perhaps even use the [0-9a-fx]* pattern for the SIZEOF_HEADERS
line too.
I was initially looking at my ld --verbose and trying to think what to do with
the SEGMENT_START("text-segment", 0x08048000) pattern, but that's clearly dumb,
since that implies that the -Ttext-segment option exists and works. :-P
r~
prev parent reply other threads:[~2013-06-19 20:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 2:29 [Qemu-devel] [RFT PATCH] configure: Simplify alternate .text segment Ed Maste
2013-06-19 18:25 ` Richard Henderson
2013-06-19 19:57 ` Ed Maste
2013-06-19 20:09 ` Richard Henderson [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=51C21001.60601@twiddle.net \
--to=rth@twiddle.net \
--cc=emaste@freebsd.org \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.