Change ld.bfd to default to --enable-new-dtags so that it generates
authorguenther <guenther@openbsd.org>
Thu, 8 Dec 2022 17:15:52 +0000 (17:15 +0000)
committerguenther <guenther@openbsd.org>
Thu, 8 Dec 2022 17:15:52 +0000 (17:15 +0000)
DT_RUNPATH tags by default, so that it is consistent with ld.lld.

ok millert@ miod@ kettenis@ kmos@

gnu/usr.bin/binutils-2.17/ld/ldmain.c

index e76dd82..023eb50 100644 (file)
@@ -296,7 +296,7 @@ main (int argc, char **argv)
   link_info.keep_memory = TRUE;
   link_info.notice_all = FALSE;
   link_info.nocopyreloc = FALSE;
-  link_info.new_dtags = FALSE;
+  link_info.new_dtags = TRUE;  /* to match lld */
   link_info.combreloc = TRUE;
   link_info.eh_frame_hdr = FALSE;
   link_info.relro = TRUE;