Re: Foating point: tracking change in between gcc 4.4.7 and gcc 4.9.2

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

 



On 12/10/2015 03:55 PM, Mathieu Malaterre wrote:

> Is there a way to test that for sure. A naive solution like:
> 
> $ LD_PRELOAD=$HOME/libc.so.6 ./mycode
> 
> results in
> 
> relocation error: /home/mathieu/libc.so.6: symbol _dl_starting_up,
> version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with
> link time reference

You can use something like this:

mkdir tmpdir
cd tmpdir
wget
https://dl.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/Packages/g/glibc-2.22-3.fc23.x86_64.rpm
rpm2cpio glibc-2.22-3.fc23.x86_64.rpm | cpio -i --make
lib64/ld-linux-x86-64.so.2 --library-path lib64 ~/mycode

Note that this only works if you use a newer glibc to run older code.

Florian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux