tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Andrew Gallatin <gallatin@cs.duke.edu>
Subject: 5.1B bug/feature with ld?
Date: Tue, 04 Feb 2003 13:56:44 -0500 (EST)	[thread overview]
Message-ID: <15936.3308.947808.131925@grasshopper.cs.duke.edu> (raw)


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



                 reply	other threads:[~2003-02-04 18:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox