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: Thomas Klausner <wiz%gatalith.at@localhost>
To: Christos Zoulas <christos%zoulas.com@localhost>
Cc: NetBSD bugtracking <gnats-bugs%netbsd.org@localhost>
Subject: Re: toolchain/61079: ld compat linker warnings considered harmful
Date: Wed, 25 Nov 2026 23:22:09 +0100

 --j3bfm3o2ubrhhlk5
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Wed, Nov 25, 2026 at 05:09:20PM +0100, Christos Zoulas wrote:
 > Undo this patch for every arch (remove the XXX line and the next), for every arch, for aarch64 this is:
 
 There's fewer of these than I expected, see attached.
  Thomas
 
 --j3bfm3o2ubrhhlk5
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="ld.diff"
 
 Index: aarch64elf.em
 ===================================================================
 RCS file: /cvsroot/src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em,v
 retrieving revision 1.12
 diff -u -r1.12 aarch64elf.em
 --- aarch64elf.em	11 Feb 2026 20:15:02 -0000	1.12
 +++ aarch64elf.em	25 Nov 2026 22:21:35 -0000
 @@ -57,8 +57,6 @@
    ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
  #endif /* not TARGET_ */
    input_flags.dynamic = ${DYNAMIC_LINK-true};
 -  /* XXX For NetBSD, ----copy-dt-needed-entries by default.  */
 -  input_flags.add_DT_NEEDED_for_dynamic = true;
    config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo true ; else echo false ; fi`;
    config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo true ; else echo false ; fi`;
    link_info.check_relocs_after_open_input = true;
 Index: armelf.em
 ===================================================================
 RCS file: /cvsroot/src/external/gpl3/binutils/dist/ld/emultempl/armelf.em,v
 retrieving revision 1.12
 diff -u -r1.12 armelf.em
 --- armelf.em	11 Feb 2026 20:15:02 -0000	1.12
 +++ armelf.em	25 Nov 2026 22:21:36 -0000
 @@ -57,8 +57,6 @@
    ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown);
  #endif /* not TARGET_ */
    input_flags.dynamic = ${DYNAMIC_LINK-true};
 -  /* XXX For NetBSD, ----copy-dt-needed-entries by default.  */
 -  input_flags.add_DT_NEEDED_for_dynamic = true;
    config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo true ; else echo false ; fi`;
    config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo true ; else echo false ; fi`;
    link_info.check_relocs_after_open_input = true;
 Index: elf.em
 ===================================================================
 RCS file: /cvsroot/src/external/gpl3/binutils/dist/ld/emultempl/elf.em,v
 retrieving revision 1.7
 diff -u -r1.7 elf.em
 --- elf.em	11 Feb 2026 20:15:02 -0000	1.7
 +++ elf.em	25 Nov 2026 22:21:36 -0000
 @@ -82,8 +82,6 @@
  {
    ldfile_set_output_arch ("${OUTPUT_ARCH}", bfd_arch_`echo ${ARCH} | sed -e 's/:.*//'`);
    input_flags.dynamic = ${DYNAMIC_LINK-true};
 -  /* XXX For NetBSD, ----copy-dt-needed-entries by default.  */
 -  input_flags.add_DT_NEEDED_for_dynamic = true;
    config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo true ; else echo false ; fi`;
    config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo true ; else echo false ; fi`;
    link_info.check_relocs_after_open_input = true;
 
 --j3bfm3o2ubrhhlk5--
 



Home | Main Index | Thread Index | Old Index