LDSCRIPTS

James E Wilson wilson@specifix.com
Thu Aug 11 02:50:00 GMT 2005


On Wed, 2005-08-10 at 17:30, John Pierce wrote:
> Could someone help me to understand what ldscripts are exactly

See the documention
    http://sourceware.org/binutils/docs-2.16/ld/Scripts.html#Scripts

Linker scripts are not meant to be modified by end users.  They should
only be modified by toolchain developers.

This is in contrast to /etc/ld.so.conf which may need to be modified by
end users when configuring a system.

Having said that, deleting non-existent directories from a linker script
should be safe, but it probably won't do anything, because the linker
won't use that script unless you specify special linker commands, which
you shouldn't be doing either.  If you really don't want those
directories in there, you should be modifying the binutils sources to
support an x86_64 single-lib system, so that the linker will have the
desired search dirs built in from the start.  But then you probably
shouldn't be doing that either, as that may cause other problems later
on, unless you are willing to deal with those other problems.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com



More information about the Binutils mailing list