[PATCH 3/3] elf: Relocate libc.so early during startup and dlmopen (bug 31083)

Andreas Schwab schwab@suse.de
Wed Dec 13 12:32:19 GMT 2023


On Dez 13 2023, Florian Weimer wrote:

> I don't know what the best way to fix this.  Is there a makefile
> variable to get the required -rpath arguments for
> --enable-hardcoded-path-in-tests builds?

# Tests use -Wl,-rpath instead of -Wl,-rpath-link for
# build-hardcoded-path-in-tests.
ifeq (yes,$(build-hardcoded-path-in-tests))
link-libc-tests-rpath-link = $(link-libc-rpath)
link-test-modules-rpath-link = $(link-libc-rpath)
else
link-libc-tests-rpath-link = $(link-libc-rpath-link)
link-test-modules-rpath-link =
endif  # build-hardcoded-path-in-tests

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."


More information about the Libc-alpha mailing list