From owner-freebsd-mips@FreeBSD.ORG Wed Feb 3 17:44:30 2010 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50B271065672 for ; Wed, 3 Feb 2010 17:44:30 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pz0-f184.google.com (mail-pz0-f184.google.com [209.85.222.184]) by mx1.freebsd.org (Postfix) with ESMTP id 25D868FC16 for ; Wed, 3 Feb 2010 17:44:30 +0000 (UTC) Received: by pzk14 with SMTP id 14so283464pzk.3 for ; Wed, 03 Feb 2010 09:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=X0Z2nfMeD/vZZ84l9QP6OFLD68ExJXcXqrpjhiU+t10=; b=fvYhnmN7lsTePb2Z9vdiDekt3QNJRPOraADGmP8tsFE09rNg7OYKofG5fSmR8LTK0T jHhDZtu0zxPjSz7AIbWzRSOjVh/D3eN1iFPwKJD4xGmdBMtOtlSyj9puu/3UogIWirkE rmc4hYq+PC+QLvbtoIWRN3b9qJ9XFy3JxJn7Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=iUQwjV2zYiROUhg2tJIaabbb7Vcokw+1GYxpSa3zXn37N0vCHrD7puDh+gUHaIhf9i xBIVh6HjiCMn4+/uX6lX/qOKvh0m6+BaWbY/t2l3adF0ut8fy2QjHRftfkUaOZdw/3RV cmbGOhzY3m9mw1yYzx7/zsynl7VzTolWS9408= MIME-Version: 1.0 Received: by 10.141.105.13 with SMTP id h13mr3563282rvm.162.1265217423385; Wed, 03 Feb 2010 09:17:03 -0800 (PST) In-Reply-To: <20100203171930.ed680ebe.ray@dlink.ua> References: <20100203135457.be65e40e.ray@dlink.ua> <20100203.071001.787670930858389487.imp@bsdimp.com> <20100203171930.ed680ebe.ray@dlink.ua> Date: Wed, 3 Feb 2010 22:47:03 +0530 Message-ID: <98a59be81002030917sd5d556fv67a3a76786df1817@mail.gmail.com> From: "C. Jayachandran" To: Alexandr Rybalko Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: mips@freebsd.org Subject: Re: MIPS ldscript X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 17:44:30 -0000 [re-send, seems to have messed up the to/cc on first try] On Wed, Feb 3, 2010 at 8:49 PM, Alexandr Rybalko wrote: > On Wed, 03 Feb 2010 07:10:01 -0700 (MST) > "M. Warner Losh" wrote: > >>> In message: <20100203135457.be65e40e.ray@dlink.ua> >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Alexandr Rybalko writes: >>> : Have trouble, possible ldscript problem, all executables have .data >>> : segment started at 0x10000, so /usr/bin/true have size 70277. =C2=A0H= elp >>> : to resolve problem. >>> >>> How are you building? =C2=A0Can you send the following: > OK > > > No ldd in cross toolchain, so ldd I test on runing MIPS device (BCM5354 D= IR-320) > > >>> >>> =C2=A0 =C2=A0 =C2=A0ls -l /usr/bin/true >> ls -l true > -rwxr-xr-x =C2=A01 ray =C2=A0wheel =C2=A070277 =C2=A03 =D0=BB=D1=8E=D1=82= 14:11 true > >>> =C2=A0 =C2=A0 =C2=A0size /usr/bin/true >> size true > =C2=A0 text =C2=A0 =C2=A0data =C2=A0 =C2=A0 bss =C2=A0 =C2=A0 dec =C2=A0 = =C2=A0 hex filename > =C2=A0 1837 =C2=A0 =C2=A0 124 =C2=A0 =C2=A0 =C2=A020 =C2=A0 =C2=A01981 = =C2=A0 =C2=A0 7bd true I too see the same executable size. My guess was that this is caused by the toolchain setup, the pagesize setting for target seems to be 64K, unless I am reading it wrong (contrib/binutils/bfd/elf32-mips.c ELF_MAXPAGESIZE) Don't know if there are any other knobs to control this setting. JC.