elf: Build tst-relr-mod[34]a.so with $(LDFLAGS-rpath-ORIGIN)
commitbbff275fb1b16f5b7dd95933bde6e1e496414dbf
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Oct 2022 22:16:32 +0000 (28 15:16 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 31 Oct 2022 16:00:26 +0000 (31 09:00 -0700)
treeb38955e4517cb7014e8594acd66d5fad6c5e0e99
parente96971482de05eff92c1408b694c320cedd2d167
elf: Build tst-relr-mod[34]a.so with $(LDFLAGS-rpath-ORIGIN)

When --enable-hardcoded-path-in-tests is used only with DT_RUNPATH,
elf/tst-relr3 and elf/tst-relr4 failed to run.  Their dependency
libraries, tst-relr-mod3a.so and tst-relr-mod4a.so, are failed to
load since DT_RUNPATH on executable doesn't apply to them.  Build
tst-relr-mod3a.so and tst-relr-mod4a.so with $(LDFLAGS-rpath-ORIGIN)
to add DT_RUNPATH for their dependency libraries.
Reviewed-by: Fangrui Song <maskray@google.com>
elf/Makefile