NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/61079: ld compat linker warnings considered harmful
The following reply was made to PR toolchain/61079; it has been noted by GNATS.
From: Christos Zoulas <christos%zoulas.com@localhost>
To: Thomas Klausner <wiz%gatalith.at@localhost>
Cc: NetBSD bugtracking <gnats-bugs%netbsd.org@localhost>
Subject: Re: toolchain/61079: ld compat linker warnings considered harmful
Date: Wed, 25 Nov 2026 17:09:20 -0500
Undo this patch for every arch (remove the XXX line and the next), for =
every arch, for aarch64 this is:
--- ld/emultempl/aarch64elf.em 11 Feb 2026 19:50:29 -0000 1.1.1.10
+++ ld/emultempl/aarch64elf.em 11 Feb 2026 20:15:02 -0000 1.12
@@ -57,6 +57,8 @@ gld${EMULATION_NAME}_before_parse (void)
ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
#endif /* not TARGET_ */
input_flags.dynamic =3D ${DYNAMIC_LINK-true};
+ /* XXX For NetBSD, ----copy-dt-needed-entries by default. */
+ input_flags.add_DT_NEEDED_for_dynamic =3D true;
config.has_shared =3D `if test -n "$GENERATE_SHLIB_SCRIPT" ; then =
echo true ; e
lse echo false ; fi`; =20
config.separate_code =3D `if test "x${SEPARATE_CODE}" =3D xyes ; then =
echo true ;
else echo false ; fi`; =20
link_info.check_relocs_after_open_input =3D true;
> On Nov 25, 2026, at 4:14=E2=80=AFPM, Thomas Klausner <wiz%gatalith.at@localhost> =
wrote:
>=20
> On Wed, Nov 25, 2026 at 04:10:01PM +0100, Christos Zoulas wrote:
>> - take the plunge, make no-copy-dt-needed the default,=20
>> - and fix whatever breaks in pkgsrc
>=20
> I'm for this. Can you come up with a patch for src so I can try in a
> limited bulk build how much would break?
As I mentioned the differences between curses and ncurses and kerberos
bite the most.=20
>=20
> I think, since Linux also switched to that default, that nowadays it
> should be easier than when the hack was introduced.
> Thomas
christos=
Home |
Main Index |
Thread Index |
Old Index