[Bug gas/23154] invalid register expression

2018-05-10 Thread sch...@linux-m68k.org
https://sourceware.org/bugzilla/show_bug.cgi?id=23154

--- Comment #6 from Andreas Schwab  ---
Search for PowerPC ISA.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug admin/23156] build breaks with old makeinfo: gdb/doc/gdb.texinfo:43443: `gdb-add-index man' has no Up field

2018-05-10 Thread nszabolcs at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23156

Szabolcs Nagy  changed:

   What|Removed |Added

  Component|build   |admin
Version|8.1 |2.30
Product|gdb |binutils

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug admin/23156] build breaks with old makeinfo: gdb/doc/gdb.texinfo:43443: `gdb-add-index man' has no Up field

2018-05-10 Thread nszabolcs at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23156

Szabolcs Nagy  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #1 from Szabolcs Nagy  ---
fixed in 51dcdc52bb8d94d213687d7015c3a234e3dd9cf9 on binutils-2_30-branch (only
this branch was affected).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/23155] internal error in set_info_section

2018-05-10 Thread alec.theriault at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23155

--- Comment #2 from Alec  ---
Thanks for the quick response! I can confirm that building manually from trunk
fixed the issue. I look forward to the next `binutils` release.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/23016] assert in output.h on mix of .eh_frame types for x86_64

2018-05-10 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23016

Cary Coutant  changed:

   What|Removed |Added

 CC||alec.theriault at gmail dot com

--- Comment #4 from Cary Coutant  ---
*** Bug 23155 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/23155] internal error in set_info_section

2018-05-10 Thread ccoutant at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23155

Cary Coutant  changed:

   What|Removed |Added

 Resolution|FIXED   |DUPLICATE

--- Comment #3 from Cary Coutant  ---
Resolving as duplicate of PR 23016.

*** This bug has been marked as a duplicate of bug 23016 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23161] New: __bss_start, _end and _edata aren't marked as hidden

2018-05-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23161

Bug ID: 23161
   Summary: __bss_start, _end and _edata aren't marked as hidden
   Product: binutils
   Version: 2.31 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
Target: linux

[hjl@gnu-4 tmp]$ cat x.c
void
foo ()
{
}
[hjl@gnu-4 tmp]$ gcc -shared -fpic x.c
[hjl@gnu-4 tmp]$ readelf --dyn-syms a.out 

Symbol table '.dynsym' contains 11 entries:
   Num:Value  Size TypeBind   Vis  Ndx Name
 0:  0 NOTYPE  LOCAL  DEFAULT  UND 
 1:  0 NOTYPE  WEAK   DEFAULT  UND
_ITM_deregisterTMCloneTab
 2:  0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__
 3:  0 NOTYPE  WEAK   DEFAULT  UND
_ITM_registerTMCloneTable
 4:  0 FUNCWEAK   DEFAULT  UND
__cxa_finalize@GLIBC_2.2.5 (2)
 5: 4018 0 NOTYPE  GLOBAL DEFAULT   20 _edata
 6: 10f9 2 FUNCGLOBAL DEFAULT   11 foo
 7: 4020 0 NOTYPE  GLOBAL DEFAULT   21 _end
 8: 4018 0 NOTYPE  GLOBAL DEFAULT   21 __bss_start
 9: 1000 0 FUNCGLOBAL DEFAULT8 _init
10: 10fc 0 FUNCGLOBAL DEFAULT   12 _fini
[hjl@gnu-4 tmp]$ 

__bss_start, _end and _edata shouldn't be in .dynsym.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden

2018-05-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23161

H.J. Lu  changed:

   What|Removed |Added

 Blocks||23162


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=23162
[Bug 23162] assertion fail binutils/bfd/elf32-i386.c:3953
-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23162] New: assertion fail binutils/bfd/elf32-i386.c:3953

2018-05-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23162

Bug ID: 23162
   Summary: assertion fail binutils/bfd/elf32-i386.c:3953
   Product: binutils
   Version: 2.31 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
Depends on: 23161
  Target Milestone: ---

[hjl@gnu-skx-1 bss-1]$ cat x.c
char *heap_start;
extern char *__bss_start;

void my_init_stacktrace()
{
  heap_start = (char*) &__bss_start;
}

int
main ()
{
  my_init_stacktrace ();
  return 0;
}
[hjl@gnu-skx-1 bss-1]$ cat foo.c
void
foo (void)
{
}
[hjl@gnu-skx-1 bss-1]$ cat libfoo.map 
FOO {
  global:
*;
};
[hjl@gnu-skx-1 bss-1]$ make
gcc -m32 -fpie -O2-c -o x.o x.c
gcc -m32 -fpie -O2  -fpic   -c -o foo.o foo.c
gcc -m32 -shared -o libfoo.so foo.o -Wl,--version-script,libfoo.map
gcc -m32 -pie -o x x.o libfoo.so -Wl,-R.
/usr/local/bin/ld: BFD (Linux/GNU Binutils) 2.30.51.0.1.20180507 assertion fail
/net/gnu-4/export/linux/src/binutils/binutils/bfd/elf32-i386.c:3953
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: x] Error 1
[hjl@gnu-skx-1 bss-1]$


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=23161
[Bug 23161] __bss_start, _end and _edata aren't marked as hidden
-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23162] assertion fail binutils/bfd/elf32-i386.c:3953

2018-05-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23162

H.J. Lu  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |hjl.tools at gmail dot 
com

--- Comment #1 from H.J. Lu  ---
Created attachment 11002
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11002&action=edit
A patch

I am testing this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23162] assertion fail binutils/bfd/elf32-i386.c:3953

2018-05-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23162

H.J. Lu  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23161] __bss_start, _end and _edata aren't marked as hidden

2018-05-10 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23161

Alan Modra  changed:

   What|Removed |Added

 CC||amodra at gmail dot com

--- Comment #1 from Alan Modra  ---
I agree that exporting these symbols doesn't seem to be useful.  I can't see a
good reason why anyone would want access to their values in shared libraries
external to the given shared library (and to choose a particular _edata say,
from among many possible shared libraries requires dlopen and dlsym).

Also, given that the standard scripts define these symbols for shared
libraries, it isn't simple for a shared library to access their values in the
executable.  Again, you'd need to use dlopen and dlsym.  So it probably isn't
that useful to export these symbols from an executable, but I'm less sure about
executables than I am about shared libraries.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/21929] memory exhaustion

2018-05-10 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=21929

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #9 from Alan Modra  ---
Closing, since it isn't a good idea to try to catch nonsense section sizes in
an object file.  The problem is that comparing against file size isn't safe. 
We have compressed and encoded sections that can expand well past the file
size.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/23165] New: Several Memory Leaks in chew of binutils

2018-05-10 Thread mudongliangabcd at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23165

Bug ID: 23165
   Summary: Several Memory Leaks in chew of binutils
   Product: binutils
   Version: 2.31 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mudongliangabcd at gmail dot com
  Target Milestone: ---

I found several memory leaks with Address Sanitizer or Valgrind.

Reproduction method:

```
git clone git://sourceware.org/git/binutils-gdb.git

mkdir obj_clang
CC=clang CFLAGS="-g -fsanitize=address" LDFLAGS="-fsanitize=address"
../configure
make
cd bfd/doc/
./chew -f < ../../../bfd/aoutx.h 

or

mkdir obj_native
../configure 
make
cd bfd/doc/
valgrind --leak-check=full  --show-leak-kinds=all ./chew -f <
../../../bfd/aoutx.h 
```

Result of Address Sanitizer:

```
$ ./chew -f < ../../../bfd/aoutx.h
Can't open the input file (null)

=
==21926==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 32 byte(s) in 1 object(s) allocated from:
#0 0x4d1cc5 in realloc
(/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/chew+0x4d1cc5)
#1 0x5137db in catbuf
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:231:30
#2 0x5128c9 in read_in
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:1505:7
#3 0x50db66 in main
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:1582:3
#4 0x7f573d8f1a86 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21a86)

Direct leak of 2 byte(s) in 1 object(s) allocated from:
#0 0x4d1cc5 in realloc
(/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/chew+0x4d1cc5)
#1 0x51267f in catchar
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:204:30
#2 0x512b55 in remove_noncomments
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:479:5
#3 0x50dba4 in main
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:1583:3
#4 0x7f573d8f1a86 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21a86)

Direct leak of 5000 byte(s) in 1 object(s) allocated from:
#0 0x4d18a0 in malloc
(/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/chew+0x4d18a0)
#1 0x513ac9 in init_string_with_size
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:131:26
#2 0x50e269 in init_string
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:138:3
#3 0x50dcfd in main
/home/mdl/Downloads/binutils-gdb/obj_afl/bfd/doc/../../../bfd/doc/chew.c:1592:8
#4 0x7f573d8f1a86 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21a86)

SUMMARY: AddressSanitizer: 345000 byte(s) leaked in 3 allocation(s).
```

Result of Valgrind:

```
https://gist.github.com/mudongliang/03c97f7c39c19c6013c3bd5a549a2282
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/23162] assertion fail binutils/bfd/elf32-i386.c:3953

2018-05-10 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23162

H.J. Lu  changed:

   What|Removed |Added

  Attachment #11002|0   |1
is obsolete||

--- Comment #2 from H.J. Lu  ---
Comment on attachment 11002
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11002
A patch

The patch is posted at

https://sourceware.org/ml/binutils/2018-05/msg00127.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/20651] its a minor bug

2018-05-10 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20651

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |INVALID

--- Comment #1 from Alan Modra  ---
So minor that it wasn't even described

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/23165] Several Memory Leaks in chew of binutils

2018-05-10 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23165

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||amodra at gmail dot com
 Resolution|--- |WONTFIX

--- Comment #1 from Alan Modra  ---
This tool is only used when building binutils, and only then if you want to
regenerate documentation files.  Memory leaks in chew are of no importance.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils