From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 6 14:45:02 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3ACDE16C25C for ; Tue, 6 Jun 2006 14:45:02 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 849AA43D45 for ; Tue, 6 Jun 2006 14:45:00 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.6/8.13.3) with ESMTP id k56EitIp001145 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 6 Jun 2006 16:44:55 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.6/8.13.3/Submit) id k56EitqV001144 for hackers@freebsd.org; Tue, 6 Jun 2006 16:44:55 +0200 (CEST) Date: Tue, 6 Jun 2006 16:44:55 +0200 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20060606144455.GA502@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: Subject: SoC: strange magic with objcopy and module builds X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jun 2006 14:45:08 -0000 Hi, I am working on SoC linuxolator and I found strange thing I dont know how to cope with: I made a patch which enables module build of linuxolator on amd64 but it refuses to kldload because of missing symbol. I tracked the problem down to the fact that i386 module build works in a way that it builds .kld and then turns this into .ko: ld -Bshareable -d -warn-common -o linux.ko linux.kld this line makes transition from U symbol to A symbol. Amd64 version uses only .ko, so this step doesnt exist there so those symbols remain U. can someone explain me whats going on? thnx roman ---------------------- www.liberalnistrana.cz