Skip to contentSkip to conversation

Problem with elf and dynamic loading ...

DISCUSSION Damien TOURAINE 2 participants 2 messages Jan 12, 2001

lore
Share & tools
lore
#0 lore raw

Hi !

I'm using dynamic library to load some part of a big software (that use several differents modules).
The main program fully use the symboles of the shared object (through the dlsym command), however, the functions available in the module are not able to use the symbols of the main program.

Is-it a bug of the kernel ?
Is-it to avoid a potential hole of security ?

My system :
Computer : SONY Notebook with a PCMCIA network card and SCSI cardbus.
Kernel : 2.2.18
I tryied to compile and launch 2.4 -test13, however, I think I didn't
have the right parameters for the compilation because it don't manage to get the bash (still try to compile it) ... Glibc : 2.2
miscellanous : fully use the elf format, have recompiled the glibc 2.2 from the GNU tree, have also recompile linux from the kernel.org.

Friendly
Damien TOURAINE

Signature · 10 lines
--------------------------------------------------------------------
Damien TOURAINE	- +33 1 69 85 81 68
PhD student at LIMSI - CNRS (http://www.limsi.fr)
Bat. 508, Universite Paris-Sud F-91403 Orsay cedex (France)
--------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Damien TOURAINE writes:

Hi !
I'm using dynamic library to load some part of a big software (that use several differents modules).

Quoted 7 lines

The main program fully use the symboles of the shared object (through the dlsym command), however, the functions available in the module are not able to use the symbols of the main program.

Is-it a bug of the kernel ?
Is-it to avoid a potential hole of security ?

That's a question for glibc - it has nothing to do with the kernel. To get it to work, your program should be compiled with -Bdynamic.

Andreas

Signature · 8 lines
 Andreas Jaeger
  SuSE Labs [email protected]
   private [email protected]
    http://www.suse.de/~aj
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/