non-PIC ELF shared libraries (fwd)

non-PIC ELF shared libraries (fwd)

Post by Martynas Kunigeli » Fri, 14 Feb 1997 04:00:00



I've been following this thread, though I actually do not care about it --
sure shared libs must be position independent, that's just the price you
have to pay. I have a question though: is there a way to generate fully
relocatable executables (not objects as produced by ld -r!)? I mean
executables that you could relocate to arbitrary offset in the data/code
segment at loadtime? And still be able to use gdb/binutils/etc.? Is there
any BFD file format that allows this or can ELF do this somehow?
I'd be very thankful for any info!

Martynas

 
 
 

1. non-PIC ELF shared libraries

Hi,

According to the README file for ld.so:

| Changes in version 1.8.3:
|
|       Changed ld-linux.so to better support position-dependant
|       libraries (NIIBE Yutaka).

Before I go upgrading my kernel and ld.so, does anyone know if "better"
means that it actually works?  Some of my code runs a lot slower with
`-fpic', so I'd like to try non-PIC libraries.  Unfortunately linking
shared libraries without `-fpic' just got me segfaults with ld-linux.so 1.7.3.

--

WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"

2. Webserver Comparison (Apache, Zeus, iPlanet)

3. gcc non-PIC shared library

4. AMD386-40: Any Problems?

5. Can ELF programs load non-ELF libraries?

6. Help! want to get free ftpd source code for Solaris/AIX/HP-UX

7. Shared library and PIC

8. Fix SMP lockup in usbdevfs

9. Shared, non shared libraries need some information about this subject

10. shared libraries - PIC testing

11. PIC and Shared Libraries

12. shared library creation and -KPIC/pic clarification