This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos 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]

Re: Dynamic loader and object loader


David:

I'd like to use dynamic loader on i386 PC target and ARM target,
the readme says that should be not working (services\loader) on
this target.

And on any other target, for that matter. Dynamic loading is not possible on eCos, and more information on the reasons for this can be found in old posts.

Is it possible to use objloader for dynamic loader (on i386 PC
target and ARM target)??

No. Objloader is the "next best thing" when you cannot do dynamic library loading. Although the user interfaces look (by design) similar, objloader simply loads an object module from some file system and resolves the symbols (i.e. relocates the module) allowing you to execute the functions within the module. Unlike dynamic linking if multiple applications need the same module each application will need to load its own copy. The loader does not do run-time linking and there is no such thing as the "export address table" (and thus you cannot reference the functions in the DLL by number)

Cheers!
Tony

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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