From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 04:20:02 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91C9516A4CE; Thu, 28 Apr 2005 04:20:02 +0000 (GMT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6113B43D64; Thu, 28 Apr 2005 04:20:02 +0000 (GMT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id DD3732A90E; Wed, 27 Apr 2005 21:20:01 -0700 (PDT) (envelope-from peter@wemm.org) Received: from peter-laptop.wemm.org (dhcp49.wemm.org [10.0.0.49]) by fw.wemm.org (Postfix) with ESMTP id B53D7E2B3; Wed, 27 Apr 2005 21:20:00 -0700 (PDT) (envelope-from peter@wemm.org) Received: from peter-laptop.wemm.org (localhost [127.0.0.1]) by peter-laptop.wemm.org (8.13.3/8.13.3) with ESMTP id j3S4IsjV010630; Wed, 27 Apr 2005 21:18:54 -0700 (PDT) (envelope-from peter@wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by peter-laptop.wemm.org (8.13.3/8.13.3/Submit) id j3S4IlEW010629; Wed, 27 Apr 2005 21:18:47 -0700 (PDT) (envelope-from peter@wemm.org) X-Authentication-Warning: peter-laptop.wemm.org: peter set sender to peter@wemm.org using -f From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Wed, 27 Apr 2005 21:18:45 -0700 User-Agent: KMail/1.8 References: <20050427192112.GA30646@xor.obsecurity.org> <20050427202900.GA52508@xor.obsecurity.org> In-Reply-To: <20050427202900.GA52508@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504272118.47153.peter@wemm.org> cc: Michael Hopkins cc: kan@freebsd.org cc: Kris Kennaway Subject: Re: Shared library relocation R_X86_64_32 solution on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 04:20:02 -0000 On Wednesday 27 April 2005 01:29 pm, Kris Kennaway wrote: > For the error above, it looks like at least 3) (i.e. FreeBSD should > provide a libobjc.so). Whether or not gnustep will use it, or if > there are further problems, I can't say. For what its worth, we do build libobjc.so now. peter@overcee[9:15pm]~-101> file /usr/lib/libobjc.so.1 /usr/lib/libobjc.so.1: ELF 64-bit LSB shared object, AMD x86-64, version 1 (FreeBSD), stripped src/gnu/lib/libobjc/Makefile rev 1.21: ---------- date: 2004/09/29 23:42:44; author: peter; state: Exp; lines: +5 -0 We *need* the pic libobjc library for amd64. It is needed for ia64 as well, but I'll let Marcel decide whether he wants to build a .so or not. Without this, building certain ports that use objc have fatal errors. ------------ This has been in RELENG_5 for a while and will be included in 5.4-RELEASE. It was not shipped in 5.3-REL. -- Makefile 28 Jul 2004 05:27:18 -0000 1.20 +++ Makefile 13 Feb 2005 07:23:06 -0000 1.20.2.2 @@ -7,6 +7,11 @@ LIB= objc -NOMAN= sorry -NOPIC= works but method lookup slowdown is significant +NOMAN= +.if ${MACHINE_ARCH} == "amd64" +SHLIB_MAJOR= 1 +.else +# XXX is this still correct? +NOPIC= # works but method lookup slowdown is significant +.endif SRCS= archive.c class.c encoding.c gc.c hash.c init.c misc.c \ I think we should be building shared libobjc.so.1 everywhere. -Peter