]> git.ipfire.org Git - thirdparty/glibc.git/commit
Add and use link-test-modules-rpath-link [BZ #28455]
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 15 Oct 2021 13:33:05 +0000 (06:33 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 24 Jan 2022 13:11:36 +0000 (05:11 -0800)
commit114d07fd9a54684cb67b02174f2c48d19f3e2502
treed2d840cfe3146ab1079b9054ca3b0c43240d79b1
parent976db046bc3a3738f69255ae00b0a09b8e77fd9c
Add and use link-test-modules-rpath-link [BZ #28455]

DT_RUNPATH is only used to find the immediate dependencies of the
executable or shared object containing the DT_RUNPATH entry:

1. Define link-test-modules-rpath-link if $(build-hardcoded-path-in-tests)
is yes.
2. Use $(link-test-modules-rpath-link) in build-module-helper so that
test modules can dlopen modules with DT_RUNPATH.
3. Add a test to show why link-test-modules-rpath-link is needed.

This partially fixes BZ #28455.
Makeconfig
Makerules
elf/Makefile
elf/tst-global2.c [new file with mode: 0644]
elf/tst-globalmod2.c [new file with mode: 0644]