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

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 00:41:57 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/binutils: readelf.c

Log Message:
binutils/readelf: Restore --special-files (same as -f), lost during merge


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/binutils/dist/binutils/readelf.c

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/binutils/readelf.c
diff -u src/external/gpl3/binutils/dist/binutils/readelf.c:1.23 src/external/gpl3/binutils/dist/binutils/readelf.c:1.24
--- src/external/gpl3/binutils/dist/binutils/readelf.c:1.23	Sat Dec 24 20:17:05 2022
+++ src/external/gpl3/binutils/dist/binutils/readelf.c	Mon Aug 28 00:41:57 2023
@@ -5132,6 +5132,7 @@ static struct option options[] =
   {"use-dynamic",  no_argument, 0, 'D'},
   {"dynamic",	   no_argument, 0, 'd'},
   {"headers",	   no_argument, 0, 'e'},
+  {"special-files",no_argument, 0, 'f'},
   {"section-groups",   no_argument, 0, 'g'},
   {"help",	   no_argument, 0, 'H'},
   {"file-header",  no_argument, 0, 'h'},
@@ -5329,6 +5330,8 @@ usage (FILE * stream)
   fprintf (stream, _("\
   -T --silent-truncation If a symbol name is truncated, do not add [...] suffix\n"));
   fprintf (stream, _("\
+  -f --special-files Process non-plain files too\n"));
+  fprintf (stream, _("\
   @Read options from \n"));
   fprintf (stream, _("\
   -H --help  Display this information\n"));



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

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 00:41:57 UTC 2023

Modified Files:
src/external/gpl3/binutils/dist/binutils: readelf.c

Log Message:
binutils/readelf: Restore --special-files (same as -f), lost during merge


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/gpl3/binutils/dist/binutils/readelf.c

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/binutils

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 00:41:00 UTC 2023

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

Log Message:
binutils/Makefile.in: Merge botch; lt_ECHO was gone. NFC


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/binutils/dist/binutils/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/binutils/Makefile.in
diff -u src/external/gpl3/binutils/dist/binutils/Makefile.in:1.12 src/external/gpl3/binutils/dist/binutils/Makefile.in:1.13
--- src/external/gpl3/binutils/dist/binutils/Makefile.in:1.12	Fri Dec 30 15:41:35 2022
+++ src/external/gpl3/binutils/dist/binutils/Makefile.in	Mon Aug 28 00:40:59 2023
@@ -611,7 +611,6 @@ libdir = @libdir@
 libexecdir = @libexecdir@
 localedir = @localedir@
 localstatedir = @localstatedir@
-lt_ECHO = @lt_ECHO@
 mandir = @mandir@
 mkdir_p = @mkdir_p@
 oldincludedir = @oldincludedir@



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

2023-08-27 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Aug 28 00:41:00 UTC 2023

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

Log Message:
binutils/Makefile.in: Merge botch; lt_ECHO was gone. NFC


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/binutils/dist/binutils/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/binutils/doc

2022-12-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec 30 19:19:21 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/binutils/doc: c++filt.1

Log Message:
match the name of the program in the description


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/binutils/dist/binutils/doc/c++filt.1

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/binutils/doc/c++filt.1
diff -u src/external/gpl3/binutils/dist/binutils/doc/c++filt.1:1.3 src/external/gpl3/binutils/dist/binutils/doc/c++filt.1:1.4
--- src/external/gpl3/binutils/dist/binutils/doc/c++filt.1:1.3	Fri Dec 30 10:41:35 2022
+++ src/external/gpl3/binutils/dist/binutils/doc/c++filt.1	Fri Dec 30 14:19:21 2022
@@ -139,7 +139,7 @@
 .if n .ad l
 .nh
 .SH "NAME"
-cxxfilt \- demangle C++ and Java symbols
+c++filt \- demangle C++ and Java symbols
 .SH "SYNOPSIS"
 .IX Header "SYNOPSIS"
 c++filt [\fB\-_\fR|\fB\-\-strip\-underscore\fR]



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

2022-12-30 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Dec 30 19:19:21 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/binutils/doc: c++filt.1

Log Message:
match the name of the program in the description


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/binutils/dist/binutils/doc/c++filt.1

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/binutils

2022-06-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun 17 16:45:22 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/binutils: dwarf.c

Log Message:
Fix readelf: Error: LEB value too large when running:
readelf --debug-dump /usr/libdata/lib/libc.so.X.Y.debug
Apply patch from:
https://www.mail-archive.com/bug-binutils@gnu.org/msg35315.html
affects objdump, readelf.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.8 -r1.2 src/external/gpl3/binutils/dist/binutils/dwarf.c

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/binutils/dwarf.c
diff -u src/external/gpl3/binutils/dist/binutils/dwarf.c:1.1.1.8 src/external/gpl3/binutils/dist/binutils/dwarf.c:1.2
--- src/external/gpl3/binutils/dist/binutils/dwarf.c:1.1.1.8	Fri Apr  3 19:39:56 2020
+++ src/external/gpl3/binutils/dist/binutils/dwarf.c	Fri Jun 17 12:45:22 2022
@@ -343,20 +343,34 @@ read_leb128 (unsigned char *data,
   while (data < end)
 {
   unsigned char byte = *data++;
+  bfd_boolean cont = (byte & 0x80) ? TRUE : FALSE;
+
+  byte &= 0x7f;
   num_read++;
 
   if (shift < sizeof (result) * 8)
-	{
-	  result |= ((dwarf_vma) (byte & 0x7f)) << shift;
-	  if ((result >> shift) != (byte & 0x7f))
-	/* Overflow.  */
-	status |= 2;
+{
+  result |= ((dwarf_vma) byte) << shift;
+  if (sign)
+{
+  if dwarf_signed_vma) result >> shift) & 0x7f) != byte)
+/* Overflow.  */
+status |= 2;
+}
+  else if ((result >> shift) != byte)
+{
+  /* Overflow.  */
+  status |= 2;
+}
+
 	  shift += 7;
 	}
-  else if ((byte & 0x7f) != 0)
-	status |= 2;
+  else if (byte != 0)
+{
+  status |= 2;
+}
 
-  if ((byte & 0x80) == 0)
+  if (!cont)
 	{
 	  status &= ~1;
 	  if (sign && (shift < 8 * sizeof (result)) && (byte & 0x40))



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

2022-06-17 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jun 17 16:45:22 UTC 2022

Modified Files:
src/external/gpl3/binutils/dist/binutils: dwarf.c

Log Message:
Fix readelf: Error: LEB value too large when running:
readelf --debug-dump /usr/libdata/lib/libc.so.X.Y.debug
Apply patch from:
https://www.mail-archive.com/bug-binutils@gnu.org/msg35315.html
affects objdump, readelf.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.8 -r1.2 src/external/gpl3/binutils/dist/binutils/dwarf.c

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/binutils

2019-07-06 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Jul  6 12:30:37 UTC 2019

Modified Files:
src/external/gpl3/binutils/dist/binutils: readelf.c

Log Message:
Don't sign-extend bytes when dumping description data.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/binutils/dist/binutils/readelf.c

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/binutils

2019-07-06 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Sat Jul  6 12:30:37 UTC 2019

Modified Files:
src/external/gpl3/binutils/dist/binutils: readelf.c

Log Message:
Don't sign-extend bytes when dumping description data.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/binutils/dist/binutils/readelf.c

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/binutils/readelf.c
diff -u src/external/gpl3/binutils/dist/binutils/readelf.c:1.20 src/external/gpl3/binutils/dist/binutils/readelf.c:1.21
--- src/external/gpl3/binutils/dist/binutils/readelf.c:1.20	Wed Nov  7 01:13:52 2018
+++ src/external/gpl3/binutils/dist/binutils/readelf.c	Sat Jul  6 12:30:36 2019
@@ -18218,7 +18218,7 @@ process_note (Elf_Internal_Note *  pnote
 
   printf (_("   description data: "));
   for (i = 0; i < pnote->descsz; i++)
-	printf ("%02x ", pnote->descdata[i]);
+	printf ("%02x ", pnote->descdata[i] & 0xff);
   if (!do_wide)
 	printf ("\n");
 }



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

2019-06-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun  9 15:39:18 UTC 2019

Modified Files:
src/external/gpl3/binutils/dist/binutils: strings.c

Log Message:
fix format


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/binutils/dist/binutils/strings.c

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/binutils/strings.c
diff -u src/external/gpl3/binutils/dist/binutils/strings.c:1.8 src/external/gpl3/binutils/dist/binutils/strings.c:1.9
--- src/external/gpl3/binutils/dist/binutils/strings.c:1.8	Tue Nov  6 20:13:52 2018
+++ src/external/gpl3/binutils/dist/binutils/strings.c	Sun Jun  9 11:39:18 2019
@@ -585,7 +585,7 @@ print_strings (const char *filename, FIL
 	else
 #elif !BFD_HOST_64BIT_LONG
 	if (start != (unsigned long) start)
-	  printf ("++%7llu ", (unsigned long) start);
+	  printf ("++%7lu ", (unsigned long) start);
 	else
 #endif
 	  printf ("%7ld ", (long) start);