]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
binutils: Enable --enable-new-dtags
authorKhem Raj <raj.khem@gmail.com>
Thu, 23 Feb 2023 06:58:16 +0000 (22:58 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Mar 2023 21:03:42 +0000 (21:03 +0000)
Use DT_RUNPATH over DT_RPATH. If DT_RUNPATH is present, LD_LIBRARY_PATH is searched before
DT_RUNPATH, Search order is DT_RPATH then LD_LIBRARY_PATH then
DT_RUNPATH, this order ensures that injecting
malicious shared objects is way harder with DT_RUNPATH.

This is now default on major linux distributions already

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils.inc

index b2dbf241df21d371dc49ac888c971999310e0d0c..c69d29448f3a266746000650726e69ac041b68f0 100644 (file)
@@ -96,6 +96,7 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
                 --disable-werror \
                 --enable-deterministic-archives \
                 --enable-plugins \
+                --enable-new-dtags \
                 --disable-gdb \
                 --disable-gdbserver \
                 --disable-libdecnumber \