[Bug binutils/22741] objcopy segfault

2018-01-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22741

Alan Modra  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from Alan Modra  ---
Fixed

-- 
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/22741] objcopy segfault

2018-01-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22741

Alan Modra  changed:

   What|Removed |Added

   Target Milestone|--- |2.31

-- 
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/22741] objcopy segfault

2018-01-28 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22741

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=eb77f6a4621795367a39cdd30957903af9dbb815

commit eb77f6a4621795367a39cdd30957903af9dbb815
Author: Alan Modra 
Date:   Sat Jan 27 08:19:33 2018 +1030

PR22741, objcopy segfault on fuzzed COFF object

PR 22741
* coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
range before converting to a symbol table pointer.

-- 
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/22750] .sizeof. directive is handled incorrectly in shared object

2018-01-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22750

--- Comment #2 from Alan Modra  ---
> .sizeof. (__verbose) in shared object gets the size of __verbose
> in executable.

No, that isn't true.  The value is the size of __verbose in the shared library
plus the base of the shared library.

> Relocation against .sizeof.__verbose is very special.  It is handled
> incorrectly in shared object.

Yes, and this is a general bug in the way absolute symbols are handled.  They
shouldn't be relocated at runtime but we do that for historical reasons. 
Symbols like __GLOBAL_OFFSET_TABLE__ used to be made SHN_ABS but they are
obviously relative to the base of the shared library.  Similarly, user defined
symbols in linker scripts might be absolute but the user really want them to be
relative to the base of the shared library.  We could fix the way absolute
symbols behave at the risk of breaking (possibly a lot) of user code.

32253bb79 is a separate issue.  I wrongly put "wanted the size of" when I meant
"wanted the symbols for" in the log.

-- 
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/22758] New: FAIL: Run pr22393-2

2018-01-28 Thread danglin at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22758

Bug ID: 22758
   Summary: FAIL: Run pr22393-2
   Product: binutils
   Version: 2.31 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: danglin at gcc dot gnu.org
  Target Milestone: ---

gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I/home/dave/gnu/binutils/src/ld/testsuite/ld-elf -g -O2   -c -g -O2 -fno-PIE
-c /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/pr22393-2b.c -o
tmpdir/pr22393-2b.o
Executing on host: sh -c {gcc  -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/
-I/home/dave/gnu/binutils/src/ld/testsuite/ld-elf -g -O2   -c -g -O2 -fno-PIE
-c /home/dave/gnu/binutils/src/ld/testsuite/ld-elf/pr22393-2b.c -o
tmpdir/pr22393-2b.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/  
-L=/home/dave/opt/gnu/hppa-unknown-linux-gnu/lib -L=/home/dave/opt/gnu/lib
-L=/usr/local/lib -L=/lib -L=/usr/lib  -o tmpdir/pr22393-2 
-L/home/dave/gnu/binutils/src/ld/testsuite/ld-elf -no-pie
-Wl,-z,separate-code,--no-as-needed tmpdir/pr22393-2a.so tmpdir/pr22393-2b.o
Executing on host: sh -c {gcc -B/home/dave/gnu/binutils/objdir/ld/tmpdir/ld/  
-L=/home/dave/opt/gnu/hppa-unknown-linux-gnu/lib -L=/home/dave/opt/gnu/lib
-L=/usr/local/lib -L=/lib -L=/usr/lib  -o tmpdir/pr22393-2 
-L/home/dave/gnu/binutils/src/ld/testsuite/ld-elf -no-pie
-Wl,-z,separate-code,--no-as-needed tmpdir/pr22393-2a.so tmpdir/pr22393-2b.o
2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
Running: tmpdir/pr22393-2 > tmpdir/pr22393-2.out
child killed: segmentation violation
FAIL: Run pr22393-2

Similar fail:
FAIL: Run pr22393-2 (PIE)

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