[patch] Fix BZ #16634 -- assert in ld.so when dlopen("a.out"...) is called repeatedly.

Paul Pluzhnikov ppluzhnikov@google.com
Sun Mar 23 21:36:00 GMT 2014


On Sun, Mar 23, 2014 at 10:23 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Siddhesh Poyarekar <siddhesh.poyarekar@gmail.com> writes:
>
>> On 23 March 2014 22:25, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
>>>
>>>   gcc -pthread -ldl -Wl,-rpath=.:nptl/l:dlfcn,--dynamic-linker=elf/ld.so
>>
>> IIRC we do -rpath-link=... --dynamic-linker=elf/ld.so ...
>
> The tests are linked like any other binary unless you use
> --enable-hardcoded-path-in-tests.

I have verified that --enable-hardcoded-path-in-tests allows me to
have a reproducer for BZ#16634.

Should '--enable-hardcoded-path-in-tests' be made the default when not
cross-compiling?


-- 
Paul Pluzhnikov



More information about the Libc-alpha mailing list