Re: CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2023-09-11 Thread Joerg Sonnenberger
On Mon, Sep 11, 2023 at 12:27:25PM +1000, matthew green wrote:
> "Rin Okuyama" writes:
> > Module Name:src
> > Committed By:   rin
> > Date:   Mon Sep 11 01:54:18 UTC 2023
> >
> > Modified Files:
> > src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em
> > elf.em
> >
> > Log Message:
> > ld: Enable --copy-dt-needed-entries by default again
> 
> thanks for fixing -lcurses.
> 
> can we put this into bsd.*.mk instead?
> 
> ie, if we want this, declare it explicitly, rather than
> reply upon patched binutils?  (this is eg, unfriendly to
> EXTERNAL_TOOLCHAIN etc.)

We (TNF) consider this the default a bug. Red Hat etc who've been
pushing for this mess don't, for reasons that don't really make sense.
Basically, the Linux toolchain folks decided that ELF should no longer
be recursive except it still is for every use case were performance
matters.

Joerg


Re: CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2023-09-10 Thread Rin Okuyama

On 2023/09/11 11:27, matthew green wrote:

"Rin Okuyama" writes:

Module Name:src
Committed By:   rin
Date:   Mon Sep 11 01:54:18 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em
elf.em

Log Message:
ld: Enable --copy-dt-needed-entries by default again


thanks for fixing -lcurses.

can we put this into bsd.*.mk instead?

ie, if we want this, declare it explicitly, rather than
reply upon patched binutils?  (this is eg, unfriendly to
EXTERNAL_TOOLCHAIN etc.)

if it works, of course


Thanks for your comment. Yeah, I feel this fix is too much also...

I've found that FreeBSD uses ldscript to handle curses vs terminfo problem.
I think we can resolve the problem in a similar manner.

I've sent PR lib/57615 for this:
http://gnats.netbsd.org/57615

Thanks,
rin


re: CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2023-09-10 Thread matthew green
"Rin Okuyama" writes:
> Module Name:  src
> Committed By: rin
> Date: Mon Sep 11 01:54:18 UTC 2023
>
> Modified Files:
>   src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em
>   elf.em
>
> Log Message:
> ld: Enable --copy-dt-needed-entries by default again

thanks for fixing -lcurses.

can we put this into bsd.*.mk instead?

ie, if we want this, declare it explicitly, rather than
reply upon patched binutils?  (this is eg, unfriendly to
EXTERNAL_TOOLCHAIN etc.)

if it works, of course


.mrg.


CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2023-09-10 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Sep 11 01:54:18 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em
elf.em

Log Message:
ld: Enable --copy-dt-needed-entries by default again

Otherwise, terminfo(3) symbols referenced from curses(3)-based applications
are not resolved, unless -lterminfo is explicitly specified.

See, e.g., PR lib/57592

We had locally enabled this by default:

http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/ld/emultempl/elf.em#rev1.2

But this was lost during 2.39 merge.

Thanks uwe@ for hints!


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em \
src/external/gpl3/binutils/dist/ld/emultempl/armelf.em
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/ld/emultempl/elf.em

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em
diff -u src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em:1.8 src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em:1.9
--- src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em:1.8	Sat Dec 24 20:17:07 2022
+++ src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em	Mon Sep 11 01:54:18 2023
@@ -44,6 +44,8 @@ gld${EMULATION_NAME}_before_parse (void)
   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: src/external/gpl3/binutils/dist/ld/emultempl/armelf.em
diff -u src/external/gpl3/binutils/dist/ld/emultempl/armelf.em:1.8 src/external/gpl3/binutils/dist/ld/emultempl/armelf.em:1.9
--- src/external/gpl3/binutils/dist/ld/emultempl/armelf.em:1.8	Sat Dec 24 20:17:07 2022
+++ src/external/gpl3/binutils/dist/ld/emultempl/armelf.em	Mon Sep 11 01:54:18 2023
@@ -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 = ${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: src/external/gpl3/binutils/dist/ld/emultempl/elf.em
diff -u src/external/gpl3/binutils/dist/ld/emultempl/elf.em:1.3 src/external/gpl3/binutils/dist/ld/emultempl/elf.em:1.4
--- src/external/gpl3/binutils/dist/ld/emultempl/elf.em:1.3	Sat Dec 24 20:17:07 2022
+++ src/external/gpl3/binutils/dist/ld/emultempl/elf.em	Mon Sep 11 01:54:18 2023
@@ -81,6 +81,8 @@ gld${EMULATION_NAME}_before_parse (void)
 {
   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;



CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2023-09-10 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Sep 11 01:54:18 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em
elf.em

Log Message:
ld: Enable --copy-dt-needed-entries by default again

Otherwise, terminfo(3) symbols referenced from curses(3)-based applications
are not resolved, unless -lterminfo is explicitly specified.

See, e.g., PR lib/57592

We had locally enabled this by default:

http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/ld/emultempl/elf.em#rev1.2

But this was lost during 2.39 merge.

Thanks uwe@ for hints!


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/binutils/dist/ld/emultempl/aarch64elf.em \
src/external/gpl3/binutils/dist/ld/emultempl/armelf.em
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/ld/emultempl/elf.em

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 02:26:36 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
binutils/ld: Misc cleanup. NFC

- Drop a.out support for NetBSD/sparc.
- Reduce diff with upstream for irrelevant parts.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/configure.tgt
diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.45 src/external/gpl3/binutils/dist/ld/configure.tgt:1.46
--- src/external/gpl3/binutils/dist/ld/configure.tgt:1.45	Mon Aug 28 02:18:16 2023
+++ src/external/gpl3/binutils/dist/ld/configure.tgt	Mon Aug 28 02:26:35 2023
@@ -544,7 +544,8 @@ mips*-sgi-irix5*)	targ_emul=elf32bsmip
 			;;
 mips*-sgi-irix6*)	targ_emul=elf32bmipn32
 			targ_extra_emuls="elf32bsmip elf64bmip"
-			targ_extra_libpath=$targ_extra_emuls ;;
+			targ_extra_libpath=$targ_extra_emuls
+			;;
 mips*el-*-haiku*)	targ_emul=elf_mipsel_haiku
 			targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
 			;;
@@ -991,12 +992,7 @@ sparc*-*-linux-*)	targ_emul=elf32_sparc
 sparc64-*-netbsd*)	targ_emul=elf64_sparc
 			targ_extra_emuls="elf32_sparc"
 			;;
-sparc64-*-openbsd*)	targ_emul=elf64_sparc
-			targ_extra_emuls="elf32_sparc"
-			;;
-sparc*-*-netbsd*elf*)	targ_emul=elf32_sparc
-			;;
-sparc*-*-netbsd*)	targ_emul=sparcnbsd
+sparc*-*-netbsd*)	targ_emul=elf32_sparc
 			;;
 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
 			targ_emul=elf32_sparc_sol2



CVS commit: src/external/gpl3/binutils/dist/ld

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 02:26:36 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
binutils/ld: Misc cleanup. NFC

- Drop a.out support for NetBSD/sparc.
- Reduce diff with upstream for irrelevant parts.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 02:18:16 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
binutils/ld: Clean up targets for arm

- Consistently use netbsd* instead of netbsdelf*.
- Consistently use arm*- and arm*eb- for OABI.
- Style sync with upstream codes.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/configure.tgt
diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.44 src/external/gpl3/binutils/dist/ld/configure.tgt:1.45
--- src/external/gpl3/binutils/dist/ld/configure.tgt:1.44	Tue Feb  7 20:39:01 2023
+++ src/external/gpl3/binutils/dist/ld/configure.tgt	Mon Aug 28 02:18:16 2023
@@ -181,22 +181,26 @@ arm*-*-freebsd* | arm-*-kfreebsd*-gnu)
 			targ_emul=armelf_fbsd
 			targ_extra_emuls="armelfb_fbsd armelf"
 			;;
-
-arm*eb-*-netbsdelf*-*eabihf*)
-			targ_emul=armelfb_nbsd_eabihf;
-			targ_extra_emuls="armelf_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf" ;;
-arm*eb-*-netbsdelf*-*eabi*)
-			targ_emul=armelfb_nbsd_eabi;
-			targ_extra_emuls="armelf_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf" ;;
-arm*-*-netbsdelf*-*eabihf*)
-			targ_emul=armelf_nbsd_eabihf;
-			targ_extra_emuls="armelfb_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf" ;;
-arm*-*-netbsdelf*-*eabi*)
-			targ_emul=armelf_nbsd_eabi;
-			targ_extra_emuls="armelfb_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf" ;;
-arm*eb-*-netbsdelf*)	targ_emul=armelfb_nbsd;
-			targ_extra_emuls="armelf_nbsd armelf" ;;
-arm-*-netbsdelf*)	targ_emul=armelf_nbsd;
+arm*eb-*-netbsd*-*eabihf*)
+			targ_emul=armelfb_nbsd_eabihf
+			targ_extra_emuls="armelf_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf"
+			;;
+arm*eb-*-netbsd*-*eabi*)
+			targ_emul=armelfb_nbsd_eabi
+			targ_extra_emuls="armelf_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf"
+			;;
+arm*-*-netbsd*-*eabihf*)
+			targ_emul=armelf_nbsd_eabihf
+			targ_extra_emuls="armelfb_nbsd_eabihf armelf_nbsd_eabi armelfb_nbsd_eabi armelf_nbsd armelfb_nbsd armelf"
+			;;
+arm*-*-netbsd*-*eabi*)
+			targ_emul=armelf_nbsd_eabi
+			targ_extra_emuls="armelfb_nbsd_eabi armelf_nbsd_eabihf armelfb_nbsd_eabihf armelf_nbsd armelfb_nbsd armelf"
+			;;
+arm*eb-*-netbsd*)	targ_emul=armelfb_nbsd
+			targ_extra_emuls="armelf_nbsd armelf"
+			;;
+arm*-*-netbsd*)		targ_emul=armelf_nbsd
  			targ_extra_emuls="armelfb_nbsd armelf"
  			;;
 arm-*-nto*)		targ_emul=armnto



CVS commit: src/external/gpl3/binutils/dist/ld

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 02:18:16 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
binutils/ld: Clean up targets for arm

- Consistently use netbsd* instead of netbsdelf*.
- Consistently use arm*- and arm*eb- for OABI.
- Style sync with upstream codes.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 02:13:18 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in

Log Message:
binutils/ld: Clean up emulations

- Drop armnbsd.c for a.out support to NetBSD/arm.

- Drop locally added ILP32 mips and riscv from ALL_EMULATION_SOURCES;
  they require 64-bit integer supports, and already registered in
  ALL_64_EMULATION_SOURCES.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/ld/Makefile.am
cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/ld/Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/Makefile.am
diff -u src/external/gpl3/binutils/dist/ld/Makefile.am:1.17 src/external/gpl3/binutils/dist/ld/Makefile.am:1.18
--- src/external/gpl3/binutils/dist/ld/Makefile.am:1.17	Sat Dec 24 20:17:07 2022
+++ src/external/gpl3/binutils/dist/ld/Makefile.am	Mon Aug 28 02:13:18 2023
@@ -187,7 +187,6 @@ ALL_EMULATION_SOURCES = \
 	earmelfb_nbsd.c \
 	earmelfb_nbsd_eabi.c \
 	earmelfb_nbsd_eabihf.c \
-	earmnbsd.c \
 	earmnto.c \
 	earmpe.c \
 	eavr1.c \
@@ -248,12 +247,6 @@ ALL_EMULATION_SOURCES = \
 	eelf32lppclinux.c \
 	eelf32lppcnto.c \
 	eelf32lppcsim.c \
-	eelf32lriscv.c \
-	eelf32lsmip.c \
-	eelf32ltsmip.c \
-	eelf32ltsmip_fbsd.c \
-	eelf32ltsmipn32.c \
-	eelf32ltsmipn32_fbsd.c \
 	eelf32m32c.c \
 	eelf32mb_linux.c \
 	eelf32mbel_linux.c \

Index: src/external/gpl3/binutils/dist/ld/Makefile.in
diff -u src/external/gpl3/binutils/dist/ld/Makefile.in:1.18 src/external/gpl3/binutils/dist/ld/Makefile.in:1.19
--- src/external/gpl3/binutils/dist/ld/Makefile.in:1.18	Mon Jan  2 00:55:46 2023
+++ src/external/gpl3/binutils/dist/ld/Makefile.in	Mon Aug 28 02:13:18 2023
@@ -684,7 +684,6 @@ ALL_EMULATION_SOURCES = \
 	earmelfb_nbsd.c \
 	earmelfb_nbsd_eabi.c \
 	earmelfb_nbsd_eabihf.c \
-	earmnbsd.c \
 	earmnto.c \
 	earmpe.c \
 	eavr1.c \
@@ -745,12 +744,6 @@ ALL_EMULATION_SOURCES = \
 	eelf32lppclinux.c \
 	eelf32lppcnto.c \
 	eelf32lppcsim.c \
-	eelf32lriscv.c \
-	eelf32lsmip.c \
-	eelf32ltsmip.c \
-	eelf32ltsmip_fbsd.c \
-	eelf32ltsmipn32.c \
-	eelf32ltsmipn32_fbsd.c \
 	eelf32m32c.c \
 	eelf32mb_linux.c \
 	eelf32mbel_linux.c \



CVS commit: src/external/gpl3/binutils/dist/ld

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 02:13:18 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: Makefile.am Makefile.in

Log Message:
binutils/ld: Clean up emulations

- Drop armnbsd.c for a.out support to NetBSD/arm.

- Drop locally added ILP32 mips and riscv from ALL_EMULATION_SOURCES;
  they require 64-bit integer supports, and already registered in
  ALL_64_EMULATION_SOURCES.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/external/gpl3/binutils/dist/ld/Makefile.am
cvs rdiff -u -r1.18 -r1.19 src/external/gpl3/binutils/dist/ld/Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 16 15:52:18 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
put back or1k


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/configure.tgt
diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.42 src/external/gpl3/binutils/dist/ld/configure.tgt:1.43
--- src/external/gpl3/binutils/dist/ld/configure.tgt:1.42	Mon Jan 16 03:31:49 2023
+++ src/external/gpl3/binutils/dist/ld/configure.tgt	Mon Jan 16 10:52:18 2023
@@ -690,6 +690,8 @@ ns32k-*-*bsd* | ns32k-pc532-lites*) targ
 or1k-*-elf | or1knd-*-elf | or1k-*-rtems* | or1knd-*-rtems*)
 			targ_emul=elf32or1k
 			;;
+or1k-*-netbsd* | or1knd-*-netbsd*)	targ_emul=elf32or1k_nbsd
+			;;
 or1k-*-linux* | or1knd-*-linux*)	targ_emul=elf32or1k_linux
 			;;
 powerpc-*-netbsd*)



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 16 15:52:18 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
put back or1k


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jan 16 08:31:49 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
Remove the trailing whitespace I added. oops.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jan 16 08:31:49 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
Remove the trailing whitespace I added. oops.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/configure.tgt
diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.41 src/external/gpl3/binutils/dist/ld/configure.tgt:1.42
--- src/external/gpl3/binutils/dist/ld/configure.tgt:1.41	Mon Jan 16 08:27:22 2023
+++ src/external/gpl3/binutils/dist/ld/configure.tgt	Mon Jan 16 08:31:49 2023
@@ -858,7 +858,7 @@ riscv64be*-*-linux* | riscv64be*-*-netbs
 			targ_extra_emuls="elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32"
 			targ_extra_libpath=$targ_extra_emuls
 			;;
-riscv64*-*-linux* | riscv64*-*-netbsd*)	
+riscv64*-*-linux* | riscv64*-*-netbsd*)
 			targ_emul=elf64lriscv
 			targ_extra_emuls="elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32"
 			targ_extra_libpath=$targ_extra_emuls



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jan 16 08:27:22 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
Restore netbsd riscv targets


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/configure.tgt
diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.40 src/external/gpl3/binutils/dist/ld/configure.tgt:1.41
--- src/external/gpl3/binutils/dist/ld/configure.tgt:1.40	Sun Jan 15 23:31:51 2023
+++ src/external/gpl3/binutils/dist/ld/configure.tgt	Mon Jan 16 08:27:22 2023
@@ -833,11 +833,13 @@ powerpc-*-windiss*)	targ_emul=elf32ppcwi
 			;;
 pru*-*-*)		targ_emul=pruelf
 			;;
-riscv32be*-*-linux*)	targ_emul=elf32briscv
+riscv32be*-*-linux* | riscv32be*-*-netbsd*)
+			targ_emul=elf32briscv
 			targ_extra_emuls="elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64"
 			targ_extra_libpath=$targ_extra_emuls
 			;;
-riscv32*-*-linux*)	targ_emul=elf32lriscv
+riscv32*-*-linux* | riscv-*-netbsd* | riscv32*-*-netbsd*)
+			targ_emul=elf32lriscv
 			targ_extra_emuls="elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64"
 			targ_extra_libpath=$targ_extra_emuls
 			;;
@@ -851,11 +853,13 @@ riscv-*-* | riscv32*-*-*)
 			targ_extra_emuls="elf64lriscv elf32briscv elf64briscv"
 			targ_extra_libpath=$targ_extra_emuls
 			;;
-riscv64be*-*-linux*)	targ_emul=elf64briscv
+riscv64be*-*-linux* | riscv64be*-*-netbsd*)
+			targ_emul=elf64briscv
 			targ_extra_emuls="elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32"
 			targ_extra_libpath=$targ_extra_emuls
 			;;
-riscv64*-*-linux*)	targ_emul=elf64lriscv
+riscv64*-*-linux* | riscv64*-*-netbsd*)	
+			targ_emul=elf64lriscv
 			targ_extra_emuls="elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32"
 			targ_extra_libpath=$targ_extra_emuls
 			;;



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-16 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jan 16 08:27:22 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
Restore netbsd riscv targets


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 15 23:31:51 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
put back all our mips stuff.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/configure.tgt
diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.39 src/external/gpl3/binutils/dist/ld/configure.tgt:1.40
--- src/external/gpl3/binutils/dist/ld/configure.tgt:1.39	Fri Jan  6 10:47:38 2023
+++ src/external/gpl3/binutils/dist/ld/configure.tgt	Sun Jan 15 18:31:51 2023
@@ -541,10 +541,6 @@ mips*-sgi-irix5*)	targ_emul=elf32bsmip
 mips*-sgi-irix6*)	targ_emul=elf32bmipn32
 			targ_extra_emuls="elf32bsmip elf64bmip"
 			targ_extra_libpath=$targ_extra_emuls ;;
-mips64*el-*-netbsd*)	targ_emul=elf32ltsmipn32 	 
-			targ_extra_emuls="elf64btsmip elf64ltsmip elf32ltsmip elf32btsmipn32 elf32btsmip" 	 
-			targ_extra_libpath=$targ_extra_emuls
-			;;
 mips*el-*-haiku*)	targ_emul=elf_mipsel_haiku
 			targ_extra_emuls="elf32ltsmip elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
 			;;
@@ -556,16 +552,22 @@ mips64*-*-netbsd*)	targ_emul=elf32btsmip
 			targ_extra_emuls="elf64ltsmip elf64btsmip elf32btsmip elf32ltsmipn32 elf32ltsmip"
 			targ_extra_libpath=$targ_extra_emuls
 			;;
+mipsn64*-*-netbsd*)	targ_emul=elf64btsmip
+			targ_extra_emuls="elf64ltsmip elf64btsmip elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32"
+			targ_extra_libpath=$targ_extra_emuls
+  			;;
+mips*el-*-netbsd*)	targ_emul=elf32ltsmip
+			targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
+			;;
+mips*-*-netbsd*)	targ_emul=elf32btsmip
+			targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip"
+			;;
 mips64el-*-openbsd*)	targ_emul=elf64ltsmip
 			targ_extra_emuls=elf64btsmip
 			;;
 mips64-*-openbsd*)	targ_emul=elf64btsmip
 			targ_extra_emuls=elf64ltsmip
 			;;
-mipsn64*-*-netbsd*)	targ_emul=elf64btsmip
-			targ_extra_emuls="elf64ltsmip elf64btsmip elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32"
-			targ_extra_libpath=$targ_extra_emuls
-  			;;
 mips*vr4300el-*-elf*)	targ_emul=elf32l4300
 			;;
 mips*vr4300-*-elf*)	targ_emul=elf32b4300



CVS commit: src/external/gpl3/binutils/dist/ld

2023-01-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jan 15 23:31:51 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
put back all our mips stuff.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/external/gpl3/binutils/dist/ld/emultempl

2015-02-18 Thread Joerg Sonnenberger
On Wed, Feb 18, 2015 at 03:05:44PM +, Joerg Sonnenberger wrote:
 Module Name:  src
 Committed By: joerg
 Date: Wed Feb 18 15:05:44 UTC 2015
 
 Modified Files:
   src/external/gpl3/binutils/dist/ld/emultempl: aarch64elf.em armelf.em
 
 Log Message:
 Apply elf32.em r1.8 to the corresponding sections of armelf.em and
 aarch64elf.em. Original commit message:
 
 Recursively add DT_NEEDED entries from shared libraries if symbols are
 used indirectly. This is more in line with the old GNU ld behavior, but
 not exactly the desired semantic.
 
 Patch from Martin Husemann.

Please note that this needs a make clean in src/external/gpl3/binutils
to be seen as the dependencies of the generated source files are
incomplete.

Joerg


CVS commit: src/external/gpl3/binutils/dist/ld

2010-01-28 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 29 06:05:32 UTC 2010

Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt

Log Message:
Remove redundant mips*-*-netbsd* clause


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils/dist/ld/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.