OK, so why _does_ ld resolve text against data?

Jens Tingleff jensting at skinfaxe.diku.dk
Fri Aug 24 16:51:23 AEST 1990


As someone points out, this is *not* a problem in the linker, but a problem
with the language. Check, for instance, Modula-2, where the external names are
*only* brought in together with the (object) module from which they should
be extracted at link time. The ``FROM foo IMPORT blahh'' method solves
the problem, since ``foo'' only contains one visible ``blahh'', and the 
linker doesn't care how many ``blahh''s are floting around out there. 

[yes, you can redefine the PROCEDUREs used by library modules. If such a 
need arises, the relevant PROCEDURE could be a procedure variable which is
assigned a non-default value by the users code]

Back to C...

	Jens
Jens Tingleff MSc EE, Institute of Computer Science, Copenhagen University
Snail mail: DIKU Universitetsparken 1 DK2100 KBH O
"It never runs around here; it just comes crashing down"
	apologies to  Dire Straits 



More information about the Comp.lang.c mailing list