[Bug binutils/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-09 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

--- Comment #6 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_30-branch branch has been updated by Nick Clifton
:

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

commit d895ef77ffc94e02e748856c2ab54f5bb8cc867e
Author: Nick Clifton 
Date:   Fri Feb 9 09:28:45 2018 +

Import patch from mainline to fix possible seg-fault whilst parsing corrupt
ELF notes with extravagent alignments.

PR 22788
* elf.c (elf_parse_notes): Reject notes with excessuively large
alignments.

-- 
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/22788] AddressSanitizer: SEGV /home/ubuntu/binutils/binutils_git/binutils-gdb/bfd/libbfd.c:558 bfd_getl32

2018-02-09 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22788

--- Comment #7 from Nick Clifton  ---

Hi JayZhang,

>Can we close the issue now and make it public?

Already done. :-)

The fix is available in the binutils development sources and on the 2.30
branch.
It will be in the next official release (either 2.30.1 or 2.31) whenever
that happens.

Cheers
  Nick

-- 
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/22823] New: bfd/libbfd.h:268:4: error: cast between incompatible function types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd *)’} to ‘bfd_boolean (*)(bfd *, bfd *)’ {aka ‘int (

2018-02-09 Thread dilyan.palauzov at aegee dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=22823

Bug ID: 22823
   Summary: bfd/libbfd.h:268:4: error: cast between incompatible
function types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int
(*)(struct bfd *)’} to ‘bfd_boolean (*)(bfd *, bfd *)’
{aka ‘int (*)(struct bfd *, struct bfd *)’}
   Product: binutils
   Version: 2.31 (HEAD)
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

Most recent gcc 8.0.1 20180209 does not compile most recent binutils
(15b23f3612ffa19b):

make[4]: Entering directory '/home/d/binutils/bfd'
/bin/bash ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I/git/binutils-gdb/bfd -I. -I/git/binutils-gdb/bfd
-I/git/binutils-gdb/bfd/../include  -DHAVE_all_vecs 
-DBINDIR='"/usr/local/bin"'  -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Wstack-usage=262144 -Werror  -O3 -pipe -MT binary.lo -MD -MP -MF
.deps/binary.Tpo -c -o binary.lo /git/binutils-gdb/bfd/binary.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I/git/binutils-gdb/bfd -I.
-I/git/binutils-gdb/bfd -I/git/binutils-gdb/bfd/../include -DHAVE_all_vecs
-DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wshadow -Wstack-usage=262144 -Werror -O3 -pipe -MT binary.lo -MD -MP -MF
.deps/binary.Tpo -c /git/binutils-gdb/bfd/binary.c -o binary.o
In file included from /git/binutils-gdb/bfd/binary.c:38:
/git/binutils-gdb/bfd/libbfd.h:268:4: error: cast between incompatible function
types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd *)’} to
‘bfd_boolean (*)(bfd *, bfd *)’ {aka ‘int (*)(struct bfd *, struct bfd *)’}
[-Werror=cast-function-type]
   ((bfd_boolean (*) (bfd *, bfd *)) bfd_true)
^
./bfd.h:7463:3: note: in expansion of macro
‘_bfd_generic_bfd_copy_private_bfd_data’
   NAME##_bfd_copy_private_bfd_data, \
   ^~~~
/git/binutils-gdb/bfd/binary.c:362:3: note: in expansion of macro
‘BFD_JUMP_TABLE_COPY’
   BFD_JUMP_TABLE_COPY (_bfd_generic),
   ^~~
/git/binutils-gdb/bfd/libbfd.h:270:4: error: cast between incompatible function
types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd *)’} to
‘bfd_boolean (*)(bfd *, struct bfd_link_info *)’ {aka ‘int (*)(struct bfd *,
struct bfd_link_info *)’} [-Werror=cast-function-type]
   ((bfd_boolean (*) (bfd *, struct bfd_link_info *)) bfd_true)
^
./bfd.h:7464:3: note: in expansion of macro
‘_bfd_generic_bfd_merge_private_bfd_data’
   NAME##_bfd_merge_private_bfd_data, \
   ^~~~
/git/binutils-gdb/bfd/binary.c:362:3: note: in expansion of macro
‘BFD_JUMP_TABLE_COPY’
   BFD_JUMP_TABLE_COPY (_bfd_generic),
   ^~~
/git/binutils-gdb/bfd/libbfd.h:274:4: error: cast between incompatible function
types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd *)’} to
‘bfd_boolean (*)(bfd *, asection *, bfd *, asection *)’ {aka ‘int (*)(struct
bfd *, struct bfd_section *, struct bfd *, struct bfd_section *)’}
[-Werror=cast-function-type]
   ((bfd_boolean (*) (bfd *, asection *, bfd *, asection *)) bfd_true)
^
./bfd.h:7466:3: note: in expansion of macro
‘_bfd_generic_bfd_copy_private_section_data’
   NAME##_bfd_copy_private_section_data, \
   ^~~~
/git/binutils-gdb/bfd/binary.c:362:3: note: in expansion of macro
‘BFD_JUMP_TABLE_COPY’
   BFD_JUMP_TABLE_COPY (_bfd_generic),
   ^~~
/git/binutils-gdb/bfd/libbfd.h:276:4: error: cast between incompatible function
types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd *)’} to
‘bfd_boolean (*)(bfd *, asymbol *, bfd *, asymbol *)’ {aka ‘int (*)(struct bfd
*, struct bfd_symbol *, struct bfd *, struct bfd_symbol *)’}
[-Werror=cast-function-type]
   ((bfd_boolean (*) (bfd *, asymbol *, bfd *, asymbol *)) bfd_true)
^
./bfd.h:7467:3: note: in expansion of macro
‘_bfd_generic_bfd_copy_private_symbol_data’
   NAME##_bfd_copy_private_symbol_data, \
   ^~~~
/git/binutils-gdb/bfd/binary.c:362:3: note: in expansion of macro
‘BFD_JUMP_TABLE_COPY’
   BFD_JUMP_TABLE_COPY (_bfd_generic),
   ^~~
/git/binutils-gdb/bfd/libbfd.h:278:4: error: cast between incompatible function
types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd *)’} to
‘bfd_boolean (*)(bfd *, bfd *)’ {aka ‘int (*)(struct bfd *, struct bfd *)’}
[-Werror=cast-function-type]
   ((bfd_boolean (*) (bfd *, bfd *)) bfd_true)
^
./bfd.h:7468:3: note: in expansion of macro
‘_bfd_generic_bfd_copy_private_header_data’
   NAME##_bfd_copy_private_header_data, \
   ^~~~
/git/binutils-gdb/bfd/binary.c:362:3: note: in expansion of macro
‘BFD_JUMP_TABLE_COPY’
   BFD_JUMP_TABLE_COPY (_bfd_generic),
   ^~~
/git/binutils-gdb/bfd/libbfd.h:272:4: error: cast between incompatible function
types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd 

[Bug ld/13391] .rofixup section size mismatch

2018-02-09 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13391

--- Comment #24 from Nick Clifton  ---
Hi Waldemar,

> I can provide you shell access to a server with all stuff precompiled
> showing the error if you want?

Can you send me another tarball of objects/libraries please ?  And the linker
command line.  (It is much easier for me to debug things locally).

Cheers
  Nick

-- 
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/22823] bfd/libbfd.h:268:4: error: cast between incompatible function types from ‘bfd_boolean (*)(bfd *)’ {aka ‘int (*)(struct bfd *)’} to ‘bfd_boolean (*)(bfd *, bfd *)’ {aka ‘int (*)(st

2018-02-09 Thread ro at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22823

Rainer Orth  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-02-09
 CC||ro at gcc dot gnu.org
   Target Milestone|--- |2.31
 Ever confirmed|0   |1

--- Comment #1 from Rainer Orth  ---
I'm seeing the same (a regression, if you can call it that), from gcc 7.1.
You can work around this by configuring with --disable-werror.

-- 
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/13671] gld creates i386 relocations not supported by Solaris ld.so.1

2018-02-09 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://sourceware.org/bugzilla/show_bug.cgi?id=13671

--- Comment #10 from Rainer Orth  ---
As a first step, I've enabled ld-i386/tls.exp and ld-x86_64/tls.exp on
Solaris/x86 and ran the respective tests.  The x86_64 tests all PASS,
while for i386 I see the known failure case:

FAIL: TLS GD/LD -> IE transition without PLT

Running: tmpdir/tls-1d > tmpdir/tls-1d.out
ld.so.1: tls-1d: fatal: relocation error: R_386_UNKNOWN37: file tmpdir/tls-1d:
symbol gd: offset size (0 bytes) is not supported

FAIL: TLS GD/LD -> IE transition without PLT (-z now)

same error

-- 
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/22828] New: [patch] incorrect format string in ru.po causes SIGSEGVs on warnings

2018-02-09 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22828

Bug ID: 22828
   Summary: [patch] incorrect format string in ru.po causes
SIGSEGVs on warnings
   Product: binutils
   Version: 2.30
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: slyfox at inbox dot ru
  Target Milestone: ---

Created attachment 10800
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10800&action=edit
0001-ru.po-fix-format-string-in-russian-locale.patch

Example crash looks like that (locale output has to be LANG=ru_RU)

$ /usr/libexec/gcc/nios2-unknown-linux-gnu/ld -plugin
/usr/libexec/gcc/nios2-unknown-linux-gnu/7.2.0/liblto_plugin.so
-plugin-opt=/usr/libexec/gcc/nios2-unknown-linux-gnu/7.2.0/lto-wrapper
-plugin-opt=-fresolution=/tmp/ccvHyCfr.res
--sysroot=/usr/nios2-unknown-linux-gnu --eh-frame-hdr -EL -shared -o
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/ld.so.new
-L/usr/lib/gcc/nios2-unknown-linux-gnu/7.2.0
-L/usr/lib/gcc/nios2-unknown-linux-gnu/7.2.0/../../../../nios2-unknown-linux-gnu/lib
-L/usr/nios2-unknown-linux-gnu/lib -L/usr/nios2-unknown-linux-gnu/usr/lib -O1
--as-needed --hash-style=gnu -z combreloc -z relro -z defs -z now
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os
--version-script=/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/ld.map
-soname=ld-linux-nios2.so.1 -defsym=_begin=0
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: из-за кодировки FDE в
/tmp/portage/cross-nios2-unknown-linux-gnu/glibc-/work/build-default-nios2-unknown-linux-gnu-nptl/elf/librtld.os(.eh_frame)
таблица .eh_frame_hdr создана не будет.
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld: в дальнейшем предупреждения о не
создании таблицы .eh_frame_hdr из-за кодировки FDE в
/usr/libexec/gcc/nios2-unknown-linux-gnu/ld generated(Ошибка сегментирования
(стек памяти сброшен на диск)



Basically the wole fix is to remove extra format args:

 #: elf-eh-frame.c:1544
 msgid "%P: Further warnings about FDE encoding preventing .eh_frame_hdr
generation dropped.\n"
-msgstr "%P: в дальнейшем предупреждения о не создании таблицы .eh_frame_hdr
из-за кодировки FDE в %B(%A) будут отбрасываться.\n"
+msgstr "%P: в дальнейшем предупреждения о не создании таблицы .eh_frame_hdr
из-за кодировки FDE будут отбрасываться.\n"

-- 
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/22828] [patch] incorrect format string in ru.po causes SIGSEGVs on warnings

2018-02-09 Thread slyfox at inbox dot ru
https://sourceware.org/bugzilla/show_bug.cgi?id=22828

Sergei Trofimovich  changed:

   What|Removed |Added

 CC||nickc at sourceware dot org

--- Comment #1 from Sergei Trofimovich  ---
The translation string was added in 7d73b4c8dfc8ae59dc1334e67c7ae2ea493dd121

-- 
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 gas/22738] .dc.a directive has wrong size on SPARC 64-bit

2018-02-09 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=22738

--- Comment #5 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_30-branch branch has been updated by Eric Botcazou
:

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

commit 9224cc645045ee01787f05dd7d11c460b28b9966
Author: Eric Botcazou 
Date:   Tue Jan 30 00:13:51 2018 +0100

Fix PR gas/22738 (.dc.a directive has wrong size on SPARC 64-bit).

The .dc.a directive has wrong size (32 bits) on SPARC 64-bit because
the assembler sets the correct BFD architecture only at the very end
of the processing and it's too late for the directive.  It's fixed by
defining TARGET_MACH and making it return a sensible default value.

gas/
* config/tc-sparc.h (sparc_mach): Declare.
(TARGET_MACH): Define to above.
* config/tc-sparc.c (sparc_mach): New function.
(sparc_md_end): Minor tweak.
ld/
* testsuite/ld-elf/pr22450.d: Remove reference to SPARC64.

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