[PATCH v2 0/9] ld: Implement DT_RELR for x86
H.J. Lu
hjl.tools@gmail.com
Tue Jan 11 14:08:10 GMT 2022
On Tue, Jan 11, 2022 at 2:13 AM Nick Clifton <nickc@redhat.com> wrote:
>
> Hi H.J.
>
> The patch set looks good to me, but there is one problem. With the
> set applied there is a new linker testsuite regression for non x86
> ELF based targets (eg: s390-linux, xtensa-elf, aarch64-linux-gnu to
> mention just a few):
>
> Executing on host: sh -c {./ld-new -o tmpdir/symbolic-func.so
> -z norelro -L/ld/testsuite/ld-elf -shared -Bsymbolic-functions
> -z nopack-relative-relocs tmpdir/symbolic-func.o 2>&1}
> /dev/null ld.tmp (timeout = 300)
> spawn [open ...]
>
> ./ld-new: warning: -z nopack-relative-relocs ignored
> ./ld-new: warning: -z nopack-relative-relocs ignored
> FAIL: -Bsymbolic-functions
>
> Please could you investigate and fix this issue ?
>
Fixed in the v3 patch:
https://sourceware.org/pipermail/binutils/2022-January/119292.html
by
Changes in v3:
1. Set DT_RELR_LDFLAGS, DT_RELR_CC_LDFLAGS, NO_DT_RELR_LDFLAGS and
NO_DT_RELR_CC_LDFLAGS to empty for non-Linux/x86 targets.
2. Run x86 DT_RELR tests only for Linux/x86 targets.
Thanks.
--
H.J.
More information about the Binutils
mailing list