This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Multiple symbols definition


Hi, 

	I would like to know where I could find an good explanation about the
way that multiple definitions of one symbol are resolved at link time
and runtime ? My problem is that I would like to control the way that
multiple definition for one symbol are resolved, ie force to resolve the
symbol in one particular library. 

	For example, let's say I want to wrap malloc calls in my dynamic
library, is it possible to link against a small wrapper library which
would define its own malloc, and to force the linker to resolve to this
wrapper library , and not to the C library ?

	Thanks for the help,

	David Cournapeau


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]