Re: Urgent: Help needed Behavior of Sun Linker and loader
From: Casper H.S. Dik (Casper.Dik_at_Sun.COM)
Date: 01/17/04
- Next message: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Previous message: sunil: "Urgent: Help needed Behavior of Sun Linker and loader"
- In reply to: sunil: "Urgent: Help needed Behavior of Sun Linker and loader"
- Next in thread: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Reply: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Reply: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Reply: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Jan 2004 14:36:23 GMT
sunilsreenivas2001@yahoo.com (sunil) writes:
>Hi!
> I am building a server using many legacy libraries (shared
>objects).I have used LD_DEBUG=reloc,symbols,bindings,detail server and
>tried to understand how the loader setups process address space.I
>observed that even before actual references to functions are made,
>linker resolves the symbols. I referred to SUN manual and understood
>that loader does this as part of relocation processing. But I am not
>still clear about this. SUN is supposed to do lazy binding for
>function calls then why should it try to resolve any symbols before
>they get called. I observed that the function symbols that get
>resolved during relocation processing are of type:
>R_SPARC_GLOB_DAT,R_SPARC_WDISP30 (and these happen to the references
>(UNDEFINED) in the file whose relocation processing tries to resolve
>these symbols and load libraries that define these symbols). I read
>SUN manual for description but still its unclear.Does this not
>contradict what we expect on SUN's, lazybinding? This effectively
>results in memory space explosion and my server crashes even before
>entering main(). Any help/ideas/suggestion wuld be really appreciated.
All references to non-functions need to be resolved when the library
is loaded. (So they're undefined, non-functions)
Casper
-- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth.
- Next message: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Previous message: sunil: "Urgent: Help needed Behavior of Sun Linker and loader"
- In reply to: sunil: "Urgent: Help needed Behavior of Sun Linker and loader"
- Next in thread: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Reply: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Reply: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Reply: sunil: "Re: Urgent: Help needed Behavior of Sun Linker and loader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]