From: Richard Henderson <rth@twiddle.net>
To: Ed Maste <emaste@freebsd.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFT PATCH v2] configure: Simplify alternate .text segment
Date: Fri, 21 Jun 2013 11:37:10 -0700 [thread overview]
Message-ID: <51C49D56.90008@twiddle.net> (raw)
In-Reply-To: <1371734143-780-1-git-send-email-emaste@freebsd.org>
On 06/20/2013 06:15 AM, Ed Maste wrote:
> + try_ldflags="-Ttext-segment=$textseg_addr"
Two problems: (1) you forgot "-Wl," here.
(2) We're running into some strange problem with git submodule init dtc.
>From config.log:
> cc -Werror -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-all -I/usr/include/libpng15 -I/usr/include/spice-server -I/usr/include/cacard -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/spice-1 -I/usr/include/nss3 -I/usr/include/nspr4 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I$(SRC_PATH)/dtc/libfdt -o /tmp/qemu-conf-29328-15251-22199.exe /tmp/qemu-conf-7372-15251-10868.c -Wl,--warn-common -m64 -g -Wl,-Ttext-segment=0x60000000
> cc1: error: $(SRC_PATH)/dtc/libfdt: No such file or directory [-Werror]
> cc1: all warnings being treated as errors
And because of that -Werror, we never detect that -Ttext-segment is supported,
which leads to the incorrect frobbing of the config-host.ld:
> PROVIDE (__executable_start = 0x60000000SEGMENT_START("text-segment", 0x400000)); . = SEGMENT_START("text-segment", 0x400000) + SIZEOF_HEADERS;
I have no idea what's going wrong with the libfdt thing...
r~
prev parent reply other threads:[~2013-06-21 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-20 13:15 [Qemu-devel] [RFT PATCH v2] configure: Simplify alternate .text segment Ed Maste
2013-06-21 18:37 ` 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=51C49D56.90008@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 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 NNTP newsgroup(s).