This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [patch] Fix BZ #16634 -- assert in ld.so when dlopen("a.out"...) is called repeatedly.
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Siddhesh Poyarekar <siddhesh dot poyarekar at gmail dot com>, Siddhesh Poyarekar <siddhesh at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sun, 23 Mar 2014 14:36:15 -0700
- Subject: Re: [patch] Fix BZ #16634 -- assert in ld.so when dlopen("a.out"...) is called repeatedly.
- Authentication-results: sourceware.org; auth=none
- References: <ye6qpplo78g2 dot fsf at elbrus2 dot mtv dot corp dot google dot com> <20140316105130 dot GJ1850 at spoyarek dot pnq dot redhat dot com> <CALoOobOt4q05ht82tWw3P=+TgR5sp3HW=DFpJC57O9knXzO6iQ at mail dot gmail dot com> <CAAHN_R3ix78oNgh=eQNcG51jbC3g5fjZ89=_qKivhdBGzO5aGw at mail dot gmail dot com> <CALoOobPyPnXtRQOpu-eWVBi_3sPoOU_fuX4x_gewQVtSWdRHWw at mail dot gmail dot com> <CAAHN_R00uk9CpkjC-Z0ORZrrVFO-hsvPSpXuAt0YS07xYjKpgQ at mail dot gmail dot com> <87y500x1zm dot fsf at igel dot home>
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