From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq6D0-0004e6-6L for qemu-devel@nongnu.org; Fri, 21 Jun 2013 14:37:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uq6Cx-0001vh-Tx for qemu-devel@nongnu.org; Fri, 21 Jun 2013 14:37:18 -0400 Received: from mail-qc0-x231.google.com ([2607:f8b0:400d:c01::231]:43100) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uq6Cx-0001vb-Q0 for qemu-devel@nongnu.org; Fri, 21 Jun 2013 14:37:15 -0400 Received: by mail-qc0-f177.google.com with SMTP id n1so4822001qcx.8 for ; Fri, 21 Jun 2013 11:37:15 -0700 (PDT) Sender: Richard Henderson Message-ID: <51C49D56.90008@twiddle.net> Date: Fri, 21 Jun 2013 11:37:10 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1371734143-780-1-git-send-email-emaste@freebsd.org> In-Reply-To: <1371734143-780-1-git-send-email-emaste@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFT PATCH v2] configure: Simplify alternate .text segment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ed Maste Cc: qemu-devel@nongnu.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~