From owner-freebsd-stable Mon Mar 12 11:43:52 2001 Delivered-To: freebsd-stable@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id CBCDD37B718; Mon, 12 Mar 2001 11:43:47 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f2CJhgA84062; Mon, 12 Mar 2001 11:43:42 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010312.19230500@ler-freebie.iadfw.net> Date: Mon, 12 Mar 2001 11:43:23 -0800 (PST) From: John Baldwin To: marcel@FreeBSD.org Subject: Re: cputype=486 Cc: qa@FreeBSD.org, Larry Rosenman Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ cc's trimmed to sane level, followups to -qa please ] On 12-Mar-01 Larry Rosenman wrote: > > ftp://ftp.lerctr.org/freebsd/makeworld-fw.out.gz > > Enjoy. It looks like strip is linked against /usr/lib/libc.a. Marcel, It looks like there may be a bug in buildworld. It seems that static binaries are being linked against /usr/lib/libc.a rather than /usr/obj/usr/src/i386/lib/libc/libc.a. I don't see how cross built worlds across architectures could work if this is so. In the case described, the host machine was built with -march=pentiumpro, and world was built w/o this flag because it was intended to be installed on a 486. However, the strip binary was linked against the -march=pentiumpro /usr/lib/libc.a during the build rather than /usr/obj/usr/src/i386/lib/libc/libc.a. Shouldn't we be using -nostdlib and some other hacks to work around this in world for static binaries? In theory, dynamic binaries should be linked against the library in /usr/obj except that that might screw up the ELF rpath if we use rpath. Comments? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message