How is [re]located?

Mike Frysinger
Tue Mar 22 14:24:00 GMT 2011

On Tue, Mar 22, 2011 at 10:21 AM, Siddhesh Poyarekar wrote:
> On Tue, Mar 22, 2011 at 7:37 PM, Mike Frysinger wrote:
>> On Tue, Mar 22, 2011 at 9:51 AM, Tom Brown wrote:
>>> I've done some googling, and found others with the same problem, but no
>>> solution. Does anyone have any idea how I can persuade the 2.96 version of
>>> the tools to generate an executable that loads
>>> /opt/gcc-2.96/lib/, instead of /lib/
>> the interp path is hardcoded in the binary because the kernel needs
>> it, and userspace cant specify a search path.
> You can specify the dynamic linker you want to load your binary with
> during the build phase by using the --dynamic-linker ld flag. You can
> set LDFLAGS as:
> -Wl,--dynamic-linker=/opt/lib/....
> or similar during your gcc build.

yes, but it sounded like that wouldnt work for him as he was dealing
with only prebuilt legacy packages

More information about the Libc-help mailing list