Re: memory fragmentation by the loader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK I figured that I need to do:
prelink -r _base_address_ _library_

changing /lib/tls/libc.so.6 to 0x00585000 was easy.
When I tried to move /lib/ld-linux.so.2 to 0x0056c000 (as it is on my other
machine). Things started to go wrong (to say the least :).
the machine didn't even boot.

I recovered the previous location of ld-linux.so.2, but still it is stuck in the
middle of the address space.

How can I relocate ld-linux.so.2, and still have linux run?


Thanks,
 Hayim.


Quoting Arjan van de Ven <arjan@xxxxxxxxxxxxx>:

>
> > No. I just installed and tried this program.
> >
> > When I do 'prelink -v a.out' I get on one machine:
>
> you'll want to pass --execshield if you're not running a fedora provided
> kernel.
>
>
>
> >
> > Does that mean the address to which a dynamic library should be loaded is
> > written in the *.so file? I thought it is determined on runtime when the
> > program is ran.
>
> not when prelink is in use (as is the case in fedora)
>
>
>
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux