From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Gallatin Newsgroups: gmane.os.tru64.managers Subject: 5.1B bug/feature with ld? Date: Tue, 04 Feb 2003 13:56:44 -0500 (EST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <15936.3308.947808.131925@grasshopper.cs.duke.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1044384911 16748 80.91.224.249 (4 Feb 2003 18:55:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Feb 2003 18:55:11 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18g8Dt-0004Lp-00 for ; Tue, 04 Feb 2003 19:55:09 +0100 Original-Received: (qmail 28451 invoked by uid 5); 4 Feb 2003 18:56:59 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 28442 invoked by uid 49493); 4 Feb 2003 18:56:59 -0000 Original-Received: from gallatin@cs.duke.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.6/5.0):. Processed in 0.355036 secs); 04 Feb 2003 18:56:59 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 4 Feb 2003 18:56:59 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0H9S00AQESMU69@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 04 Feb 2003 13:56:57 -0500 (EST) Original-Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0H9S00C79SMQR4@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 04 Feb 2003 13:56:51 -0500 (EST) Original-Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.6/8.12.6) with ESMTP id h14Iuo8I029425 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 04 Feb 2003 13:56:50 -0500 (EST) Original-Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h14IujB16605; Tue, 04 Feb 2003 13:56:45 -0500 (EST envelope-from gallatin@cs.duke.edu) Original-To: tru64-unix-managers@ornl.gov X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Xref: main.gmane.org gmane.os.tru64.managers:3213 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3213 I'm trying to build a local kernel module which has worked fine with all previous versions of osf/1. 5.1B's ld seem to have its own special idea of how to link things. If a library is involved, it will make a reference to the following symbols: __exc_add_gp_range __exc_add_pc_range_table __exc_remove_gp_range __exc_remove_pc_range_table All of these are defined in libc, which is not good if you're building a kernel module. Eg: % ld -dc -r -o my.mod drivers/gm_uc_k.o zlib/libz.a % nm my.mod | grep __exc_add_gp __exc_add_gp_range | 0000000000000000 | U | 0000000000000000 Using the old LD works fine: % ~/ld.5.1 -dc -r -o my.mod drivers/gm_uc_k.o zlib/libz.a % nm my.mod | grep __exc_add_gp % The symbols are NOT in the .o or library files: % nm drivers/gm_uc_k.o zlib/libz.a | grep __exc % But that string does appear in ld: % strings /usr/ccs/bin/ld | grep __exc __exc_remove_gp_range __exc_remove_pc_range_table __exc_add_gp_range __exc_add_pc_range_table Does anybody know of any flags to ld to make it not reference those extranious symbols? Thanks, Drew