[Bug gas/26381] gas: speed of LTO LTRANS units

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26381

--- Comment #8 from Martin Liska  ---
With the current master, we have implemented dynamic hash tables and so that we
get:
time ./gas/as-new ~/Programming/testcases/libxul-ltrans.s -o /dev/null

real0m3.336s
user0m3.196s
sys 0m0.138s

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26407] Global symbol reference breaks without -Bsymbolic-functions

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26407

Martin Liska  changed:

   What|Removed |Added

 CC||mliska at suse dot cz

--- Comment #3 from Martin Liska  ---
(In reply to H.J. Lu from comment #1)
> Please make it a run-time test.

It is a run-time test-case. He executes binary called 'break'.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/26406] Extreme assembling time regression with 2.35 and master

2020-08-20 Thread franz.sirl at lauterbach dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26406

--- Comment #4 from franz.sirl at lauterbach dot com ---
Hi Nick,

yes, I can confirm that your patch brings back the performance to the original
level.

Thanks,
Franz

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/26406] Extreme assembling time regression with 2.35 and master

2020-08-20 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=26406

--- Comment #5 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Nick Clifton :

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

commit 44466e45c51b1c68ed2f95f86bcdb1f18f08b380
Author: Nick Clifton 
Date:   Thu Aug 20 10:19:47 2020 +0100

Apply a workaround to mitigate a quadratic performance hit in the linker
when writing out secondary reloc sections.

PR 26406
* elf-bfd.h (struct bfd_elf_section_data): Add
has_secondary_relocs field.
* elf.c (_bfd_elf_copy_special_section_fields): Set the
has_secondary_relocs field for sections which have associated
secondary relocs.
* elfcode.h (elf_write_relocs): Only call write_secondary_relocs
on sections which have associated secondary relocs.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/26406] Extreme assembling time regression with 2.35 and master

2020-08-20 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26406

Nick Clifton  changed:

   What|Removed |Added

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

--- Comment #6 from Nick Clifton  ---
Patch applied.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26407] Global symbol reference breaks without -Bsymbolic-functions

2020-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26407

--- Comment #4 from H.J. Lu  ---
'--dynamic-list=DYNAMIC-LIST-FILE'
 Specify the name of a dynamic list file to the linker.  This is
 typically used when creating shared libraries to specify a list of
 global symbols whose references shouldn't be bound to the
 definition within the shared library, or creating dynamically
 linked executables to specify a list of symbols which should be
 added to the symbol table in the executable.  This option is only
 meaningful on ELF platforms which support shared libraries.

So symbols aren't on the dynamic list will be bound to the definition
within the shared library.  The linker behavior matches the linker
manual.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26407] Global symbol reference breaks without -Bsymbolic-functions

2020-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26407

--- Comment #5 from H.J. Lu  ---
It sounds like you need

'--dynamic-list-data'
 Include all global data symbols to the dynamic list.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26407] Global symbol reference breaks without -Bsymbolic-functions

2020-08-20 Thread fab...@ritter-vogt.de
https://sourceware.org/bugzilla/show_bug.cgi?id=26407

--- Comment #6 from Fabian Vogt  ---
(In reply to H.J. Lu from comment #4)
> '--dynamic-list=DYNAMIC-LIST-FILE'
>  Specify the name of a dynamic list file to the linker.  This is
>  typically used when creating shared libraries to specify a list of
>  global symbols whose references shouldn't be bound to the
>  definition within the shared library, or creating dynamically
>  linked executables to specify a list of symbols which should be
>  added to the symbol table in the executable.  This option is only
>  meaningful on ELF platforms which support shared libraries.
> 
> So symbols aren't on the dynamic list will be bound to the definition
> within the shared library.  The linker behavior matches the linker
> manual.

That doesn't explain the behaviour change with -Bsymbolic-functions and the
different behaviour with gold.

The definition of the symbol is inside lib.so, so there is no reason this
shouldn't work.

This breaks because the break binary has a R_X86_64_COPY relocation, which
essentially moves the symbol out of the lib into the executable.

IMO copy relocations are an implementation detail which should be made as
compatible as possible, in this case maybe by making --dynamic-list-data the
default if --dynamic-list is passed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26407] Global symbol reference breaks without -Bsymbolic-functions

2020-08-20 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26407

H.J. Lu  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|WAITING |RESOLVED

--- Comment #7 from H.J. Lu  ---
(In reply to Fabian Vogt from comment #6)
> (In reply to H.J. Lu from comment #4)
> > '--dynamic-list=DYNAMIC-LIST-FILE'
> >  Specify the name of a dynamic list file to the linker.  This is
> >  typically used when creating shared libraries to specify a list of
> >  global symbols whose references shouldn't be bound to the
> >  definition within the shared library, or creating dynamically
> >  linked executables to specify a list of symbols which should be
> >  added to the symbol table in the executable.  This option is only
> >  meaningful on ELF platforms which support shared libraries.
> > 
> > So symbols aren't on the dynamic list will be bound to the definition
> > within the shared library.  The linker behavior matches the linker
> > manual.
> 
> That doesn't explain the behaviour change with -Bsymbolic-functions and the
> different behaviour with gold.

Let focus on ld.  -Bsymbolic-functions changes behavior is a bug, which has
been fixed in 2.35.

> The definition of the symbol is inside lib.so, so there is no reason this
> shouldn't work.

?

> This breaks because the break binary has a R_X86_64_COPY relocation, which
> essentially moves the symbol out of the lib into the executable.
> 
> IMO copy relocations are an implementation detail which should be made as
> compatible as possible, in this case maybe by making --dynamic-list-data the
> default if --dynamic-list is passed.

There is no different between value and setValue as far as --dynamic-list
is concerned.  Linker provides precise controls with command-line options.
You need to tell linker exactly what you need.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/26410] New: UBSAN error: gas/symbols.c:1818:3:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26410

Bug ID: 26410
   Summary: UBSAN error: gas/symbols.c:1818:3:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=aarch64-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: aarch64-elf
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {/dev/shm/ie14cir6/ld/../gas/as-new  
-Ild/testsuite/ld-aarch64/erratum835769.s 2>&1}  /dev/null ld.tmp (timeout =
300)
gas/symbols.c:1818:3: runtime error: null pointer passed as argument 1, which
is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26411] New: UBSAN error: elfnn-aarch64.c:7140:25:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26411

Bug ID: 26411
   Summary: UBSAN error: elfnn-aarch64.c:7140:25:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=aarch64-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: aarch64-elf
PASS: ld-aarch64/emit-relocs-266-bad
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-aarch64  -T relocs.ld
--defsym tempy=0x63001000 --defsym tempy2=0x45 --defsym
tempy3=0x1234567812345  -e0 --emit-relocs -m aarch64elf -o tmpdir/dump
tmpdir/emit-relocs-267.o  2>&1}  /dev/null dump.tmp (timeout = 300)
elfnn-aarch64.c:7140:25: runtime error: shift exponent 32 is too large for
32-bit type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26412] New: UBSAN error: objcopy.c:3026:12:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26412

Bug ID: 26412
   Summary: UBSAN error: objcopy.c:3026:12:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=aarch64-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: aarch64-elf
PASS: strings: decoding little-endian multibyte strings
Executing on host: /dev/shm/ie14cir6/binutils/objcopy  --dump-section
.text=tmpdir/empty tmpdir/update-1.o   (timeout = 300)
/home/mliska/Programming/binutils/binutils/objcopy.c:3026:12: runtime error:
null pointer passed as argument 1, which is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26413] New: UBSAN error: elfnn-aarch64.c:3928:7:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26413

Bug ID: 26413
   Summary: UBSAN error: elfnn-aarch64.c:3928:7:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=aarch64-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: aarch64-linux
PASS: Erratum 835769 dump test
Executing on host: sh -c {/dev/shm/e8py6d55/ld/ld-new   -o tmpdir/erratum835769
-z norelro -L/home/mliska/Programming/binutils/ld/testsuite/ld-aarch64
--fix-cortex-a53-835769 -shared tmpdir/erratum835769.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
elfnn-aarch64.c:3928:7: runtime error: null pointer passed as argument 1, which
is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26415] New: UBSAN error: bfd/vms-misc.c:636:26:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26415

Bug ID: 26415
   Summary: UBSAN error: bfd/vms-misc.c:636:26:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=alpha-dec-vms CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: alpha-dec-vms
|   exit( YY_EXIT_FAILURE );
Executing on host: /dev/shm/zrn3bqvl/binutils/ar rc tmpdir/artest.a
tmpdir/abcdefghijklmnopqrstuvwxyz1 tmpdir/abcdefghijklmnopqrstuvwxyz2  
(timeout = 300)
/home/mliska/Programming/binutils/bfd/vms-misc.c:636:26: runtime error: left
shift of 54738 by 16 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26414] New: ASAN error: in get_sym_code_type /home/mliska/Programming/binutils/opcodes/aarch64-dis.c:3333

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26414

Bug ID: 26414
   Summary: ASAN error: in get_sym_code_type
/home/mliska/Programming/binutils/opcodes/aarch64-dis.
c:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=aarch64-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: aarch64-linux
PASS: aarch64-farcall-b-gsym
Executing on host: sh -c {/dev/shm/e8py6d55/ld/../binutils/objdump  -dr
tmpdir/dump > tmpdir/dump.out 2>dump.tmp}  /dev/null  (timeout = 300)
==27462==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60600128 at pc 0x00500e01 bp 0x7fffb0a0 sp 0x7fffb098
#0 0x500e00 in get_sym_code_type
/home/mliska/Programming/binutils/opcodes/aarch64-dis.c:
#1 0x525e64 in print_insn_aarch64
/home/mliska/Programming/binutils/opcodes/aarch64-dis.c:3458
#2 0x4384ed in disassemble_bytes
/home/mliska/Programming/binutils/binutils/objdump.c:2796
#3 0x4384ed in disassemble_section
/home/mliska/Programming/binutils/binutils/objdump.c:3378
#4 0x63b527 in bfd_map_over_sections
/home/mliska/Programming/binutils/bfd/section.c:1379
#5 0x41bfa9 in disassemble_data
/home/mliska/Programming/binutils/binutils/objdump.c:3524
#6 0x4303ba in dump_bfd
/home/mliska/Programming/binutils/binutils/objdump.c:4929
#7 0x43305c in display_object_bfd
/home/mliska/Programming/binutils/binutils/objdump.c:4991
#8 0x43305c in display_any_bfd
/home/mliska/Programming/binutils/binutils/objdump.c:5081
#9 0x433402 in display_file
/home/mliska/Programming/binutils/binutils/objdump.c:5102
#10 0x433402 in display_file
/home/mliska/Programming/binutils/binutils/objdump.c:5085
#11 0x417e25 in main
/home/mliska/Programming/binutils/binutils/objdump.c:5450
#12 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#13 0x419ec9 in _start (/dev/shm/e8py6d55/binutils/objdump+0x419ec9)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26416] New: UBSAN error: bfd/elf64-alpha.c:4819:10:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26416

Bug ID: 26416
   Summary: UBSAN error: bfd/elf64-alpha.c:4819:10:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=alpha-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: alpha-linux
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {/dev/shm/f4ptcwuc/ld/ld-new   -o tmpdir/libtlspic.so
-z norelro -L/home/mliska/Programming/binutils/ld/testsuite/ld-alpha -shared
-melf64alpha --hash-style=sysv tmpdir/align.o tmpdir/tlspic1.o tmpdir/tlspic2.o
 2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-alpha.c:4819:10: runtime error:
left shift of 48 by 26 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26417] New: UBSAN error: bfd/elf64-alpha.c:3465:13:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26417

Bug ID: 26417
   Summary: UBSAN error: bfd/elf64-alpha.c:3465:13:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=alpha-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: alpha-linux
FAIL: TLS -fpic and -fno-pic exec
Executing on host: sh -c {/dev/shm/f4ptcwuc/ld/ld-new   -o tmpdir/tlsbinr -z
norelro -L/home/mliska/Programming/binutils/ld/testsuite/ld-alpha -relax
-melf64alpha --hash-style=sysv tmpdir/libtlslib.so tmpdir/align.o
tmpdir/tlsbinpic.o tmpdir/tlsbin.o  2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-alpha.c:3465:13: runtime error:
member access within null pointer of type 'struct alpha_elf_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26419] New: ASAN error: in mn10300_elf_relax_section /home/mliska/Programming/binutils/bfd/elf-m10300.c:3942

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26419

Bug ID: 26419
   Summary: ASAN error: in mn10300_elf_relax_section
/home/mliska/Programming/binutils/bfd/elf-m10300.c:394
2
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=am33_2.0-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: am33_2.0-linux
PASS: difference of two same-section symbols
Executing on host: sh -c {./ld-new   -o tmpdir/i112045-3.x 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-mn10300 -relax -Ttext 100
tmpdir/i112045-3.o  2>&1}  /dev/null ld.tmp (timeout = 300)
==50495==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x6020258f at pc 0x0058d960 bp 0x7fffb580 sp 0x7fffb578
#0 0x58d95f in mn10300_elf_relax_section
/home/mliska/Programming/binutils/bfd/elf-m10300.c:3942
#1 0x4538f5 in lang_size_sections_1
/home/mliska/Programming/binutils/ld/ldlang.c:6072
#2 0x452ae6 in lang_size_sections_1
/home/mliska/Programming/binutils/ld/ldlang.c:6048
#3 0x45361b in lang_size_sections_1
/home/mliska/Programming/binutils/ld/ldlang.c:5810
#4 0x472b42 in one_lang_size_sections_pass
/home/mliska/Programming/binutils/ld/ldlang.c:6278
#5 0x472b42 in lang_size_sections
/home/mliska/Programming/binutils/ld/ldlang.c:6390
#6 0x472b42 in lang_relax_sections
/home/mliska/Programming/binutils/ld/ldlang.c:7659
#7 0x4d4ead in ldelf_map_segments
/home/mliska/Programming/binutils/ld/ldelfgen.c:40
#8 0x48384d in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:8164
#9 0x413dda in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#10 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#11 0x416329 in _start (/dev/shm/yipk5tlw/ld/ld-new+0x416329)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26418] New: UBSAN error: bfd/cache.c:386:12:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26418

Bug ID: 26418
   Summary: UBSAN error: bfd/cache.c:386:12:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=alpha-linuxecoff CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: alpha-linuxecoff
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {/dev/shm/z4gjobiy/ld/../gas/as-new  
-I/home/mliska/Programming/binutils/ld/testsuite/ld-checks   -o tmpdir/asm.o
/home/mliska/Programming/binutils/ld/testsuite/ld-checks/asm.s 2>&1}  /dev/null
ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/cache.c:386:12: runtime error: null
pointer passed as argument 1, which is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26420] New: UBSAN error: gas/config/tc-arm.c:23588:32:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26420

Bug ID: 26420
   Summary: UBSAN error: gas/config/tc-arm.c:23588:32:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {/dev/shm/b6evfmmd/ld/../gas/as-new  
-I/home/mliska/Programming/binutils/ld/testsuite/ld-arm   -o
tmpdir/group-relocs.o 
/home/mliska/Programming/binutils/ld/testsuite/ld-arm/group-relocs.s 2>&1} 
/dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:23588:32: runtime error:
left shift of 14 by 28 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26422] New: ASAN error: in bfd_getl32 /home/mliska/Programming/binutils/bfd/libbfd.c:644

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26422

Bug ID: 26422
   Summary: ASAN error: in bfd_getl32
/home/mliska/Programming/binutils/bfd/libbfd.c:644
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: callweak
Executing on host: sh -c {/dev/shm/b6evfmmd/ld/ld-new   -o
tmpdir/reloc-boundaries 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm -defsym x=0 -defsym y=0
-defsym _start=0 tmpdir/reloc-boundaries.o  2>&1}  /dev/null ld.tmp (timeout =
300)
==54326==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60202af6 at pc 0x005151b7 bp 0x7fffaef0 sp 0x7fffaee8
#0 0x5151b6 in bfd_getl32
/home/mliska/Programming/binutils/bfd/libbfd.c:644
#1 0x5cef33 in elf32_arm_final_link_relocate
/home/mliska/Programming/binutils/bfd/elf32-arm.c:10350
#2 0x5f8c9e in elf32_arm_relocate_section
/home/mliska/Programming/binutils/bfd/elf32-arm.c:13378
#3 0x75a69a in elf_link_input_bfd
/home/mliska/Programming/binutils/bfd/elflink.c:11134
#4 0x768c3c in bfd_elf_final_link
/home/mliska/Programming/binutils/bfd/elflink.c:12469
#5 0x5ba89d in elf32_arm_final_link
/home/mliska/Programming/binutils/bfd/elf32-arm.c:13746
#6 0x49c649 in ldwrite /home/mliska/Programming/binutils/ld/ldwrite.c:545
#7 0x414fa9 in main /home/mliska/Programming/binutils/ld/ldmain.c:510
#8 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#9 0x417459 in _start (/dev/shm/b6evfmmd/ld/ld-new+0x417459)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26421] New: UBSAN error: gas/config/tc-arm.c:2283:28:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26421

Bug ID: 26421
   Summary: UBSAN error: gas/config/tc-arm.c:2283:28:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: STM32L4XX erratum fix LDM
Executing on host: sh -c {/dev/shm/b6evfmmd/ld/../gas/as-new  
-I/home/mliska/Programming/binutils/ld/testsuite/ld-arm   -o
tmpdir/stm32l4xx-fix-vldm.o -EL -mcpu=cortex-m4 -mfpu=fpv4-sp-d16
/home/mliska/Programming/binutils/ld/testsuite/ld-arm/stm32l4xx-fix-vldm.s
2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:2283:28: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26423] New: UBSAN error: bfd/elf32-arm.c:10236:24:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26423

Bug ID: 26423
   Summary: UBSAN error: bfd/elf32-arm.c:10236:24:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: TLS shared library gdesc local
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm  -Ttext 0x8000
--section-start foo=0x9010 -o tmpdir/dump tmpdir/group-relocs-alu-bad.o  2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-arm.c:10236:24: runtime error: left
shift of 3 by 30 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26424] New: UBSAN error: bfd/elf32-arm.c:10755:30:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26424

Bug ID: 26424
   Summary: UBSAN error: bfd/elf32-arm.c:10755:30:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: ld-arm/thumb2-bl-undefweak1
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm  -Ttext 0x1
--defsym target=0xc000 -e0 --emit-relocs -o tmpdir/dump tmpdir/emit-relocs1.o 
2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-arm.c:10755:30: runtime error: left
shift of negative value -2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26425] New: UBSAN error: gas/config/tc-arm.c:8292:25:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26425

Bug ID: 26425
   Summary: UBSAN error: gas/config/tc-arm.c:8292:25:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: ADDS relocations against local symbols for armv6s-m
Executing on host: sh -c {../as-new -o tmpdir/addsw-bad.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/addsw-bad.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:8292:25: runtime error:
left shift of 255 by 24 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26425] UBSAN error: gas/config/tc-arm.c:8292:25:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26425

--- Comment #1 from Martin Liska  ---
UBSAN error: gas/config/tc-arm.c:15627:37: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
PASS: gas/arm/armv7e-m+fpv5-sp-d16
Executing on host: sh -c {../as-new  -march=armv8.2-a+fp16 -mwarn-restrict-it 
-o tmpdir/armv8-2-fp16-scalar-bad.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/armv8-2-fp16-scalar-bad.s
2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:15627:37: runtime error:
left shift of 14 by 28 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-arm.c:15593:35: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
PASS: gas/arm/armv7e-m+fpv5-sp-d16
Executing on host: sh -c {../as-new  -march=armv8.2-a+fp16 -mwarn-restrict-it 
-o tmpdir/armv8-2-fp16-scalar-bad.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/armv8-2-fp16-scalar-bad.s
2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:15593:35: runtime error:
left shift of 10 by 28 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-arm.c:16841:45: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: ARM v8.2 FP16 support on scalar
Executing on host: sh -c {../as-new  -march=armv8.2-a+fp16  -o
tmpdir/armv8-2-fp16-simd.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/armv8-2-fp16-simd.s
2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:16841:45: runtime error:
left shift of 15 by 28 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-arm.c:2238:27: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: Double precision instructions for 'armv8.1-m.main'
Executing on host: sh -c {../as-new  -march=armv8.1-m.main+fp  -o
tmpdir/vfp1xD_t2.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/vfp1xD_t2.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:2238:27: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-arm.c:2250:23: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: Double precision instructions for 'armv8.1-m.main'
Executing on host: sh -c {../as-new  -march=armv8.1-m.main+fp  -o
tmpdir/vfp1xD_t2.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/vfp1xD_t2.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:2250:23: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-arm.c:15178:26: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
PASS: MVE vmull instructions
Executing on h

[Bug admin/26427] New: UBSAN error: gas/config/tc-arm.c:8799:16:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26427

Bug ID: 26427
   Summary: UBSAN error: gas/config/tc-arm.c:8799:16:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: admin
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
FAIL: VFPv3-D16
Executing on host: sh -c {../as-new  -mfpu=vfp3  -o
tmpdir/vfpv3-ldr_immediate.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/vfpv3-ldr_immediate.s
2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-arm.c:8799:16: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26426] New: ASAN error: in neon_quad /home/mliska/Programming/binutils/gas/config/tc-arm.c:15178

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26426

Bug ID: 26426
   Summary: ASAN error: in neon_quad
/home/mliska/Programming/binutils/gas/config/tc-arm.c:
15178
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-elf
PASS: MVE vmull instructions
Executing on host: sh -c {../as-new  -march=armv8.1-m.main+mve.fp  -o
tmpdir/mve-vmvn-bad.o
/home/mliska/Programming/binutils/gas/testsuite/gas/arm/mve-vmvn-bad.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
==46252==ERROR: AddressSanitizer: global-buffer-overflow on address
0x00cf0b30 at pc 0x0056b427 bp 0x7fffbbd0 sp 0x7fffbbc8
#0 0x56b426 in neon_quad
/home/mliska/Programming/binutils/gas/config/tc-arm.c:15178
#1 0x56b426 in do_neon_mvn
/home/mliska/Programming/binutils/gas/config/tc-arm.c:19566
#2 0x56b426 in do_neon_mvn
/home/mliska/Programming/binutils/gas/config/tc-arm.c:19548
#3 0x574f67 in md_assemble
/home/mliska/Programming/binutils/gas/config/tc-arm.c:23522
#4 0x49f8ba in assemble_one
/home/mliska/Programming/binutils/gas/read.c:713
#5 0x49f8ba in read_a_source_file
/home/mliska/Programming/binutils/gas/read.c:1182
#6 0x416f12 in perform_an_assembly_pass
/home/mliska/Programming/binutils/gas/as.c:1253
#7 0x416f12 in main /home/mliska/Programming/binutils/gas/as.c:1417
#8 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#9 0x4192f9 in _start (/dev/shm/b6evfmmd/gas/as-new+0x4192f9)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26428] New: BFD linker creates compressed sections with 1 byte alignment

2020-08-20 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26428

Bug ID: 26428
   Summary: BFD linker creates compressed sections with 1 byte
alignment
   Product: binutils
   Version: 2.36 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: nickc at redhat dot com
  Target Milestone: ---

The BFD linker will create compressed debug sections with 1 byte alignment.
This is despite the fact that these sections start with a chdr structure that
needs 4-byte or 8-byte alignment.  (For the 32-bit and 64-bit versions of the
structure respectively).

For example:

  $ echo 'int main(int argc, char **argv) { return 0; }' | gcc -c -o ex.o -g
-gz=zlib -x c -
  $ ld -o ex --compress-debug-sections=zlib ex.o
  $ readelf -N --wide ex
Section Headers:
  [Nr] Name
   TypeAddress  OffSize   ES   Lk Inf Al
   Flags
 [...]
  [ 5] .debug_info
   PROGBITS 002206 6f 00   0   0  1
   [0800]: COMPRESSED
   ZLIB, 0085, 1
 [...]

This causes problems for other tools which expect the proper alignment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26429] New: UBSAN error: bfd/elf32-arm.c:15432:46:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26429

Bug ID: 26429
   Summary: UBSAN error: bfd/elf32-arm.c:15432:46:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

UBSAN error: bfd/elf32-arm.c:15432:46: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-linuxeabi CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-linuxeabi
PASS: target2-abs
Executing on host: sh -c {/dev/shm/_xy33ilw/ld/ld-new   -o
tmpdir/arm-target2-got-rel -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm -static
--target2=got-rel -T arm.ld tmpdir/arm-target2.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-arm.c:15432:46: runtime error: load
of misaligned address 0x62114d94 for type 'bfd_signed_vma', which requires
8 byte alignment


UBSAN error: bfd/elf32-arm.c:16768:26: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-linuxeabi CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-linuxeabi
PASS: target2-abs
Executing on host: sh -c {/dev/shm/_xy33ilw/ld/ld-new   -o
tmpdir/arm-target2-got-rel -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm -static
--target2=got-rel -T arm.ld tmpdir/arm-target2.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-arm.c:16768:26: runtime error:
store to misaligned address 0x62114de4 for type 'bfd_vma', which requires 8
byte alignment


UBSAN error: bfd/elf32-arm.c:16769:15: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-linuxeabi CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-linuxeabi
PASS: target2-abs
Executing on host: sh -c {/dev/shm/_xy33ilw/ld/ld-new   -o
tmpdir/arm-target2-got-rel -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm -static
--target2=got-rel -T arm.ld tmpdir/arm-target2.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-arm.c:16769:15: runtime error: load
of misaligned address 0x62114dac for type 'struct arm_local_iplt_info *',
which requires 8 byte alignment


UBSAN error: bfd/elf32-arm.c:16842:8: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-linuxeabi CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-linuxeabi
PASS: target2-abs
Executing on host: sh -c {/dev/shm/_xy33ilw/ld/ld-new   -o
tmpdir/arm-target2-got-rel -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm -static
--target2=got-rel -T arm.ld tmpdir/arm-target2.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-arm.c:16842:8: runtime error: load
of misaligned address 0x62114d74 for type 'bfd_signed_vma', which requires
8 byte alignment


UBSAN error: bfd/elf32-arm.c:16900:17: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-linuxeabi CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-linuxeabi
PASS: target2-abs
Executing on host: sh -c {/dev/shm/_xy33ilw/ld/ld-new   -o
tmpdir/arm-target2-got-rel -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm -static
--target2=got-rel -T arm.ld tmpdir/arm-target2.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-arm.c:16900:17: runtime error:
store to misaligned address 0x62114d74 for

[Bug binutils/26430] New: ASAN error: in memcpy (/usr/lib64/libasan.so.6+0x3c63f)

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26430

Bug ID: 26430
   Summary: ASAN error: in memcpy
(/usr/lib64/libasan.so.6+0x3c63f)
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-nacl CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-nacl
FAIL: ld-elf/64ksec-r
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf   -o tmpdir/dump
tmpdir/sec64-0.o tmpdir/sec64-1.o tmpdir/sec64-2.o tmpdir/sec64-3.o
tmpdir/sec64-4.o tmpdir/sec64-5.o tmpdir/sec64-6.o tmpdir/sec64-7.o
tmpdir/sec64-8.o tmpdir/sec64-9.o tmpdir/sec64-10.o tmpdir/sec64-11.o
tmpdir/sec64-12.o tmpdir/sec64-13.o tmpdir/sec64-14.o tmpdir/sec64-15.o
tmpdir/sec64-16.o tmpdir/sec64-17.o tmpdir/sec64-18.o tmpdir/sec64-19.o
tmpdir/sec64-20.o tmpdir/sec64-21.o tmpdir/sec64-22.o tmpdir/sec64-23.o
tmpdir/sec64-24.o tmpdir/sec64-25.o tmpdir/sec64-26.o tmpdir/sec64-27.o
tmpdir/sec64-28.o tmpdir/sec64-29.o tmpdir/sec64-30.o tmpdir/sec64-31.o
tmpdir/sec64-32.o tmpdir/sec64-33.o tmpdir/sec64-34.o tmpdir/sec64-35.o
tmpdir/sec64-36.o tmpdir/sec64-37.o tmpdir/sec64-38.o tmpdir/sec64-39.o
tmpdir/sec64-40.o tmpdir/sec64-41.o tmpdir/sec64-42.o tmpdir/sec64-43.o
tmpdir/sec64-44.o tmpdir/sec64-45.o tmpdir/sec64-46.o tmpdir/sec64-47.o
tmpdir/sec64-48.o tmpdir/sec64-49.o tmpdir/sec64-50.o tmpdir/sec64-51.o
tmpdir/sec64-52.o tmpdir/sec64-53.o tmpdir/sec64-54.o tmpdir/sec64-55.o
tmpdir/sec64-56.o tmpdir/sec64-57.o tmpdir/sec64-58.o tmpdir/sec64-59.o
tmpdir/sec64-60.o tmpdir/sec64-61.o tmpdir/sec64-62.o tmpdir/sec64-63.o
tmpdir/sec64-64.o tmpdir/sec64-65.o  2>&1}  /dev/null dump.tmp (timeout = 300)
==46811==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x725df6e0 at pc 0x77628640 bp 0x7fffb4b0 sp 0x7fffac60
#0 0x7762863f in memcpy (/usr/lib64/libasan.so.6+0x3c63f)
#1 0x646dc0 in nacl_modify_segment_map
/home/mliska/Programming/binutils/bfd/elf-nacl.c:164
#2 0x5967da in elf32_arm_nacl_modify_segment_map
/home/mliska/Programming/binutils/bfd/elf32-arm.c:20366
#3 0x5967da in elf32_arm_nacl_modify_segment_map
/home/mliska/Programming/binutils/bfd/elf32-arm.c:20363
#4 0x685d86 in elf_modify_segment_map
/home/mliska/Programming/binutils/bfd/elf.c:4624
#5 0x685d86 in _bfd_elf_map_sections_to_segments
/home/mliska/Programming/binutils/bfd/elf.c:5223
#6 0x4dfa01 in ldelf_map_segments
/home/mliska/Programming/binutils/ld/ldelfgen.c:53
#7 0x48504d in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:8164
#8 0x41554a in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#9 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#10 0x417b29 in _start (/dev/shm/cj47r8cc/ld/ld-new+0x417b29)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/26428] BFD linker creates compressed sections with 1 byte alignment

2020-08-20 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26428

Nick Clifton  changed:

   What|Removed |Added

   Assignee|unassigned at sourceware dot org   |nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26431] New: UBSAN error: ld/pe-dll.c:568:7:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26431

Bug ID: 26431
   Summary: UBSAN error: ld/pe-dll.c:568:7:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=arm-pe CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: arm-pe
PASS: ld-pe/orphan_nu
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-pe  -shared --out-implib
dx.dll.a --gc-sections -o tmpdir/dump tmpdir/pr19803.o  2>&1}  /dev/null
dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/ld/pe-dll.c:568:7: runtime error: null
pointer passed as argument 2, which is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26433] New: UBSAN error: bfd/elf32-avr.c:4109:17:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26433

Bug ID: 26433
   Summary: UBSAN error: bfd/elf32-avr.c:4109:17:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=avr-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: avr-elf
FAIL: AVR .avr.prop, single .org test.
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-avr  -mavrxmega2 --relax -o
tmpdir/dump tmpdir/avr-prop-2.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-avr.c:4109:17: runtime error: load
of misaligned address 0x60300dc9 for type 'uint32_t', which requires 4 byte
alignment


UBSAN error: bfd/elf32-avr.c:4159:43: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=avr-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: avr-elf
FAIL: AVR .avr.prop, multiple .org test.
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-avr  -mavrxmega2 --relax -o
tmpdir/dump tmpdir/avr-prop-3.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-avr.c:4159:43: runtime error: load
of misaligned address 0x60300df9 for type 'uint32_t', which requires 4 byte
alignment

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26434] New: UBSAN error: bfd/elf32-avr.c:1055:40:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26434

Bug ID: 26434
   Summary: UBSAN error: bfd/elf32-avr.c:1055:40:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=avr-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: avr-elf
FAIL: AVR .avr.prop, single .align sym at end of section test.
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-avr  -mavrxmega2 --relax -o
tmpdir/dump tmpdir/avr-prop-7.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-avr.c:1055:40: runtime error: left
shift of negative value -2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26432] New: ASAN error: in bfd_getb32 /home/mliska/Programming/binutils/bfd/libbfd.c:631

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26432

Bug ID: 26432
   Summary: ASAN error: in bfd_getb32
/home/mliska/Programming/binutils/bfd/libbfd.c:631
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=armeb-linuxeabi CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: armeb-linuxeabi
FAIL: callweak
Executing on host: sh -c {/dev/shm/tbh4lqi8/ld/ld-new   -o
tmpdir/reloc-boundaries -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-arm -defsym x=0 -defsym y=0
-defsym _start=0 tmpdir/reloc-boundaries.o  2>&1}  /dev/null ld.tmp (timeout =
300)
==57326==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x602029d6 at pc 0x0051b416 bp 0x7fffae10 sp 0x7fffae08
#0 0x51b415 in bfd_getb32
/home/mliska/Programming/binutils/bfd/libbfd.c:631
#1 0x5d5343 in elf32_arm_final_link_relocate
/home/mliska/Programming/binutils/bfd/elf32-arm.c:10350
#2 0x5ff0ae in elf32_arm_relocate_section
/home/mliska/Programming/binutils/bfd/elf32-arm.c:13378
#3 0x760aaa in elf_link_input_bfd
/home/mliska/Programming/binutils/bfd/elflink.c:11134
#4 0x76f04c in bfd_elf_final_link
/home/mliska/Programming/binutils/bfd/elflink.c:12469
#5 0x5c0cad in elf32_arm_final_link
/home/mliska/Programming/binutils/bfd/elf32-arm.c:13746
#6 0x49cd19 in ldwrite /home/mliska/Programming/binutils/ld/ldwrite.c:545
#7 0x415649 in main /home/mliska/Programming/binutils/ld/ldmain.c:510
#8 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#9 0x417b29 in _start (/dev/shm/tbh4lqi8/ld/ld-new+0x417b29)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26435] New: UBSAN error: bfd/elf32-cr16.c:928:21:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26435

Bug ID: 26435
   Summary: UBSAN error: bfd/elf32-cr16.c:928:21:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: changelma (pr20659)
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf   -o tmpdir/dump
tmpdir/comm-data4.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-cr16.c:928:21: runtime error: left
shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26436] New: UBSAN error: bfd/elf32-cr16.c:928:46:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26436

Bug ID: 26436
   Summary: UBSAN error: bfd/elf32-cr16.c:928:46:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: changelma (pr20659)
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf   -o tmpdir/dump
tmpdir/comm-data4.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-cr16.c:928:46: runtime error:
signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26436] UBSAN error: bfd/elf32-cr16.c:928:46:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26436

--- Comment #1 from Martin Liska  ---
UBSAN error: bfd/elf32-cr16.c:928:51: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: changelma (pr20659)
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf   -o tmpdir/dump
tmpdir/comm-data4.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-cr16.c:928:51: runtime error: left
shift of 2147483647 by 1 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26437] UBSAN error: gas/config/tc-cr16.c:2071:17:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26437

--- Comment #1 from Martin Liska  ---
UBSAN error: gas/config/tc-cr16.c:1764:21: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: .xstabs
Executing on host: sh -c {../as-new-o tmpdir/add_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/add_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1764:21: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:1764:37: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: .xstabs
Executing on host: sh -c {../as-new-o tmpdir/add_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/add_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1764:37: runtime error:
signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:1764:42: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: .xstabs
Executing on host: sh -c {../as-new-o tmpdir/add_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/add_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1764:42: runtime error:
left shift of 2147483647 by 1 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:2078:20: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
FAIL: add_test
Executing on host: sh -c {../as-new-o tmpdir/and_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/and_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2078:20: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:2078:35: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
FAIL: add_test
Executing on host: sh -c {../as-new-o tmpdir/and_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/and_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2078:35: runtime error:
signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:2078:40: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
FAIL: add_test
Executing on host: sh -c {../as-new-o tmpdir/and_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/and_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2078:40: runtime error:
left shift of 2147483647 by 1 places cannot be represented in type 'int'

-- 
You are receiving this mail beca

[Bug binutils/26437] New: UBSAN error: gas/config/tc-cr16.c:2071:17:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26437

Bug ID: 26437
   Summary: UBSAN error: gas/config/tc-cr16.c:2071:17:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: .xstabs
Executing on host: sh -c {../as-new-o tmpdir/add_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/add_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2071:17: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:2071:32: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: .xstabs
Executing on host: sh -c {../as-new-o tmpdir/add_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/add_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2071:32: runtime error:
signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:2072:19: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: .xstabs
Executing on host: sh -c {../as-new-o tmpdir/add_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/add_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2072:19: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-cr16.c:2072:14: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: .xstabs
Executing on host: sh -c {../as-new-o tmpdir/add_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/add_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2072:14: runtime error:
negation of -2147483648 cannot be represented in type 'int'; cast to an
unsigned type to negate this value to itself

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26439] New: UBSAN error: gas/config/tc-cr16.c:1533:6:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26439

Bug ID: 26439
   Summary: UBSAN error: gas/config/tc-cr16.c:1533:6:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: gas/macros/paren
Executing on host: sh -c {../as-new  
/home/mliska/Programming/binutils/gas/testsuite/gas/macros/exit.s 2>gas.stderr}
 /dev/null  (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1533:6: runtime error:
index 5 out of bounds for type 'char [5]'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26438] New: UBSAN error: gas/config/tc-cr16.c:1962:7:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26438

Bug ID: 26438
   Summary: UBSAN error: gas/config/tc-cr16.c:1962:7:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
FAIL: beq0_test
Executing on host: sh -c {../as-new-o tmpdir/cbitb_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/cbitb_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1962:7: runtime error:
shift exponent 32 is too large for 32-bit type 'int'


UBSAN error: gas/config/tc-cr16.c:1968:9: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
FAIL: beq0_test
Executing on host: sh -c {../as-new-o tmpdir/cbitb_test.o
/home/mliska/Programming/binutils/gas/testsuite/gas/cr16/cbitb_test.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1968:9: runtime error:
shift exponent 32 is too large for 32-bit type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26440] New: UBSAN error: gas/config/tc-cr16.c:1533:12:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26440

Bug ID: 26440
   Summary: UBSAN error: gas/config/tc-cr16.c:1533:12:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: gas/macros/paren
Executing on host: sh -c {../as-new  
/home/mliska/Programming/binutils/gas/testsuite/gas/macros/exit.s 2>gas.stderr}
 /dev/null  (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1533:12: runtime error:
store to address 0x7fffbbe5 with insufficient space for an object of type
'char'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26441] New: ASAN error: in get_b_cc /home/mliska/Programming/binutils/gas/config/tc-cr16.c:1533

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26441

Bug ID: 26441
   Summary: ASAN error: in get_b_cc
/home/mliska/Programming/binutils/gas/config/tc-cr16.c
:1533
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=cr16-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: cr16-elf
PASS: gas/macros/paren
Executing on host: sh -c {../as-new  
/home/mliska/Programming/binutils/gas/testsuite/gas/macros/exit.s 2>gas.stderr}
 /dev/null  (timeout = 300)
==42113==ERROR: AddressSanitizer: stack-buffer-overflow on address
0x7fffbbe5 at pc 0x004ccea0 bp 0x7fffbb80 sp 0x7fffbb78
#0 0x4cce9f in get_b_cc
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1533
#1 0x4dbe40 in is_bcc_insn
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:1548
#2 0x4dbe40 in md_assemble
/home/mliska/Programming/binutils/gas/config/tc-cr16.c:2548
#3 0x488f87 in read_a_source_file
/home/mliska/Programming/binutils/gas/read.c:1182
#4 0x41444f in perform_an_assembly_pass
/home/mliska/Programming/binutils/gas/as.c:1253
#5 0x41444f in main /home/mliska/Programming/binutils/gas/as.c:1417
#6 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#7 0x4167f9 in _start (/dev/shm/y8krvqy2/gas/as-new+0x4167f9)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26443] New: UBSAN error: bfd/elf32-crx.c:512:46:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26443

Bug ID: 26443
   Summary: UBSAN error: bfd/elf32-crx.c:512:46:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=crx-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: crx-elf
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-crx  -T
/home/mliska/Programming/binutils/ld/testsuite/ld-crx/crx.ld -o tmpdir/dump
tmpdir/reloc-abs32.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-crx.c:512:46: runtime error: signed
integer overflow: -2147483648 - 1 cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26442] New: UBSAN error: bfd/elf32-crx.c:512:21:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26442

Bug ID: 26442
   Summary: UBSAN error: bfd/elf32-crx.c:512:21:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=crx-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: crx-elf
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-crx  -T
/home/mliska/Programming/binutils/ld/testsuite/ld-crx/crx.ld -o tmpdir/dump
tmpdir/reloc-abs32.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-crx.c:512:21: runtime error: left
shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26444] New: UBSAN error: bfd/elf32-crx.c:512:51:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26444

Bug ID: 26444
   Summary: UBSAN error: bfd/elf32-crx.c:512:51:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=crx-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: crx-elf
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-crx  -T
/home/mliska/Programming/binutils/ld/testsuite/ld-crx/crx.ld -o tmpdir/dump
tmpdir/reloc-abs32.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-crx.c:512:51: runtime error: left
shift of 2147483647 by 1 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26445] New: UBSAN error: bfd/elf32-csky.c:3916:18:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26445

Bug ID: 26445
   Summary: UBSAN error: bfd/elf32-csky.c:3916:18:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=csky-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: csky-elf
PASS: Build eh-group1.o
Executing on host: sh -c {./ld-new   -o tmpdir/eh-group -e _start
tmpdir/eh-group.o 2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-csky.c:3916:18: runtime error: left
shift of negative value -44

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26448] New: UBSAN error: gas/symbols.c:1586:31:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26448

Bug ID: 26448
   Summary: UBSAN error: gas/symbols.c:1586:31:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=dlx-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: dlx-elf
PASS: lhi
Executing on host: sh -c {../as-new-o tmpdir/load.o
/home/mliska/Programming/binutils/gas/testsuite/gas/dlx/load.s 2>&1}  /dev/null
dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/symbols.c:1586:31: runtime error: left
shift of negative value -20

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26446] UBSAN error: gas/config/tc-csky.c:2618:20:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26446

--- Comment #1 from Martin Liska  ---
UBSAN error: gas/config/tc-csky.c:4022:22: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=csky-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: csky-elf
PASS: csky - nolrw
Executing on host: sh -c {../as-new  -mcpu=ck803er1  -o tmpdir/enhance_dsp.o
/home/mliska/Programming/binutils/gas/testsuite/gas/csky/enhance_dsp.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-csky.c:4022:22: runtime error:
index 4 out of bounds for type 'int [4]'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26446] New: UBSAN error: gas/config/tc-csky.c:2618:20:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26446

Bug ID: 26446
   Summary: UBSAN error: gas/config/tc-csky.c:2618:20:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=csky-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: csky-elf
PASS: csky - nolrw
Executing on host: sh -c {../as-new  -mcpu=ck803er1  -o tmpdir/enhance_dsp.o
/home/mliska/Programming/binutils/gas/testsuite/gas/csky/enhance_dsp.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-csky.c:2618:20: runtime error:
index 4 out of bounds for type 'int [4]'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26447] New: UBSAN error: gas/expr.c:1936:48:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26447

Bug ID: 26447
   Summary: UBSAN error: gas/expr.c:1936:48:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=dlx-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: dlx-elf
PASS: lhi
Executing on host: sh -c {../as-new-o tmpdir/load.o
/home/mliska/Programming/binutils/gas/testsuite/gas/dlx/load.s 2>&1}  /dev/null
dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/expr.c:1936:48: runtime error: left shift
of negative value -20

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26450] New: UBSAN error: opcodes/frv-ibld.c:135:52:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26450

Bug ID: 26450
   Summary: UBSAN error: opcodes/frv-ibld.c:135:52:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=frv-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: frv-elf
FAIL: tls-1-dep
Executing on host: sh -c {/dev/shm/r0zogdqa/ld/../gas/as-new  -mfdpic-o
tmpdir/tls-1.o /home/mliska/Programming/binutils/ld/testsuite/ld-frv/tls-1.s
2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/opcodes/frv-ibld.c:135:52: runtime error:
left shift of negative value -1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26451] New: UBSAN error: bfd/som.c:4293:17:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26451

Bug ID: 26451
   Summary: UBSAN error: bfd/som.c:4293:17:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=hppa-hp-hpux10 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: hppa-hp-hpux10
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {../as-new   
/home/mliska/Programming/binutils/gas/testsuite/gas/all/p2425.s 2>&1} 
/dev/null gas.out (timeout = 300)
/home/mliska/Programming/binutils/bfd/som.c:4293:17: runtime error: load of
address 0x7fffbea0 with insufficient space for an object of type 'long
unsigned int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26449] New: UBSAN error: opcodes/frv-ibld.c:135:30:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26449

Bug ID: 26449
   Summary: UBSAN error: opcodes/frv-ibld.c:135:30:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=frv-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: frv-elf
FAIL: tls-1-dep
Executing on host: sh -c {/dev/shm/r0zogdqa/ld/../gas/as-new  -mfdpic-o
tmpdir/tls-1.o /home/mliska/Programming/binutils/ld/testsuite/ld-frv/tls-1.s
2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/opcodes/frv-ibld.c:135:30: runtime error:
shift exponent 4294967295 is too large for 64-bit type 'long int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26452] New: ASAN error: in som_compute_checksum /home/mliska/Programming/binutils/bfd/som.c:4293

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26452

Bug ID: 26452
   Summary: ASAN error: in som_compute_checksum
/home/mliska/Programming/binutils/bfd/som.c:4293
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=hppa-hp-hpux10 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: hppa-hp-hpux10
|   exit( YY_EXIT_FAILURE );
Executing on host: sh -c {../as-new   
/home/mliska/Programming/binutils/gas/testsuite/gas/all/p2425.s 2>&1} 
/dev/null gas.out (timeout = 300)
==15525==ERROR: AddressSanitizer: stack-buffer-overflow on address
0x7fffbea0 at pc 0x0058738b bp 0x7fffbb30 sp 0x7fffbb28
#0 0x58738a in som_compute_checksum
/home/mliska/Programming/binutils/bfd/som.c:4293
#1 0x58738a in som_finish_writing
/home/mliska/Programming/binutils/bfd/som.c:4228
#2 0x51cede in bfd_close /home/mliska/Programming/binutils/bfd/opncls.c:775
#3 0x46a6e1 in output_file_close
/home/mliska/Programming/binutils/gas/output-file.c:64
#4 0x41a8cf in close_output_file
/home/mliska/Programming/binutils/gas/as.c:1158
#5 0x6afad3 in xatexit_cleanup
/home/mliska/Programming/binutils/libiberty/xatexit.c:98
#6 0x6afea4 in xexit /home/mliska/Programming/binutils/libiberty/xexit.c:50
#7 0x411b35 in main /home/mliska/Programming/binutils/gas/as.c:1499
#8 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#9 0x4136d9 in _start (/dev/shm/3krqkl3k/gas/as-new+0x4136d9)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26454] New: UBSAN error: /home/mliska/Programming/binutils/home/mliska/Programming/binutils/bfd/som.c:4293:17:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26454

Bug ID: 26454
   Summary: UBSAN error:
/home/mliska/Programming/binutils/home/mliska/Programm
ing/binutils/bfd/som.c:4293:17:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=hppa-hp-hpux10 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: hppa-hp-hpux10
FAIL: immed.s: immediate tests
Executing on host: sh -c {../as-new  -al
/home/mliska/Programming/binutils/gas/testsuite/gas/hppa/basic/branch.s 2>&1} 
/dev/null gas.out (timeout = 300)
GAS LISTING
/home/mliska/Programming/binutils/home/mliska/Programming/binutils/bfd/som.c:4293:17:
runtime error: load of address 0x7fffbea0 with insufficient space for an
object of type 'long unsigned int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26453] New: UBSAN error: bfd/som.c:2885:3:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26453

Bug ID: 26453
   Summary: UBSAN error: bfd/som.c:2885:3:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=hppa-hp-hpux10 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: hppa-hp-hpux10
PASS: Output file must be distinct from input
Executing on host: sh -c {../as-new   
/home/mliska/Programming/binutils/gas/testsuite/gas/all/eqv-ok.s 2>&1} 
/dev/null gas.out (timeout = 300)
/home/mliska/Programming/binutils/bfd/som.c:2885:3: runtime error: null pointer
passed as argument 2, which is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26455] New: UBSAN: binutils/bfd/som.c:2885:3:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26455

Bug ID: 26455
   Summary: UBSAN: binutils/bfd/som.c:2885:3:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=hppa-hp-hpux10 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: hppa-hp-hpux10
FAIL: branch.s: branch tests
Executing on host: sh -c {../as-new  -al
/home/mliska/Programming/binutils/gas/testsuite/gas/hppa/basic/add.s 2>&1} 
/dev/null gas.out (timeout = 300)
  95 0144 08A42A0/home/mliska/Programming/binutils/bfd/som.c:2885:3: runtime
error: null pointer passed as argument 2, which is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26456] New: UBSAN error: /home/mliska/Programming/binutils/bfd/som.c:4293:17:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26456

Bug ID: 26456
   Summary: UBSAN error:
/home/mliska/Programming/binutils/bfd/som.c:4293:17:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=hppa-hp-hpux10 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: hppa-hp-hpux10
FAIL: picreloc.s: Test for proper PIC relocation (part 2)
Executing on host: sh -c {../as-new  -al
/home/mliska/Programming/binutils/gas/testsuite/gas/hppa/reloc/applybug.s 2>&1}
 /dev/null gas.out (timeout = 300)
 103 00e8 8780200A  comib,=,n
0,%r/home/mliska/Programming/binutils/bfd/som.c:4293:17: runtime error: load of
address 0x7fffbe90 with insufficient space for an object of type 'long
unsigned int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26457] New: UBSAN error: bfd/som.c:1794:5:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26457

Bug ID: 26457
   Summary: UBSAN error: bfd/som.c:1794:5:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=hppa-hp-hpux10 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: hppa-hp-hpux10
FAIL: Test for alignment bug when switching subspaces (part1)
Executing on host: sh -c {../as-new  
/home/mliska/Programming/binutils/gas/testsuite/gas/hppa/unsorted/align4.s
2>&1}  /dev/null gas.out (timeout = 300)
/home/mliska/Programming/binutils/bfd/som.c:1794:5: runtime error: left shift
of 127 by 25 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26459] New: UBSAN error: elfnn-ia64.c:1945:15:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26459

Bug ID: 26459
   Summary: UBSAN error: elfnn-ia64.c:1945:15:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=ia64-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: ia64-elf
PASS: ld-elf/pr349
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -shared -T
reloc-discard.ld -o tmpdir/dump tmpdir/reloc-discard.o  2>&1}  /dev/null
dump.tmp (timeout = 300)
elfnn-ia64.c:1945:15: runtime error: null pointer passed as argument 2, which
is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26458] New: UBSAN error: bfd/elf32-i386.c:3615:21:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26458

Bug ID: 26458
   Summary: UBSAN error: bfd/elf32-i386.c:3615:21:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=i686-vxworks CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: i686-vxworks
PASS: VxWorks shared library test 1
Executing on host: sh -c {./ld-new   -o tmpdir/vxworks1 -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-i386 tmpdir/libvxworks1.so
-Tvxworks1.ld --hash-style=sysv -q --force-dynamic tmpdir/vxworks1.o  2>&1} 
/dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-i386.c:3615:21: runtime error: left
shift of negative value -2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26460] New: UBSAN error: gas/config/tc-ia64.c:6107:23:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26460

Bug ID: 26460
   Summary: UBSAN error: gas/config/tc-ia64.c:6107:23:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=ia64-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: ia64-elf
PASS: --sort-common (ascending)
Executing on host: sh -c {/dev/shm/lg8r_lvd/ld/../gas/as-new  
-I/home/mliska/Programming/binutils/ld/testsuite/ld-ia64   -o tmpdir/tlspic1.o
-mtune=itanium1
/home/mliska/Programming/binutils/ld/testsuite/ld-ia64/tlspic1.s 2>&1} 
/dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-ia64.c:6107:23: runtime error:
index 5 out of bounds for type 'ia64_opnd [5]'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26461] New: UBSAN error: bfd/elfxx-ia64.c:747:34:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26461

Bug ID: 26461
   Summary: UBSAN error: bfd/elfxx-ia64.c:747:34:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=ia64-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: ia64-elf
FAIL: ld-ia64/error2
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-ia64  -pie -shared -o
tmpdir/dump tmpdir/error1.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elfxx-ia64.c:747:34: runtime error: left
shift of 219902321 by 23 places cannot be represented in type 'long long
int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26463] New: ASAN error: in m32c_elf_relax_section /home/mliska/Programming/binutils/bfd/elf32-m32c.c:1448

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26463

Bug ID: 26463
   Summary: ASAN error: in m32c_elf_relax_section
/home/mliska/Programming/binutils/bfd/elf32-m32c.c:144
8
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=m32c-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: m32c-elf
FAIL: ld-elf/pr20528b
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -T pr21884.t -o
tmpdir/dump tmpdir/pr21884a.o tmpdir/pr21884b.o  2>&1}  /dev/null dump.tmp
(timeout = 300)
==48615==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60700088 at pc 0x005774dc bp 0x7fffb7c0 sp 0x7fffb7b8
#0 0x5774db in m32c_elf_relax_section
/home/mliska/Programming/binutils/bfd/elf32-m32c.c:1448
#1 0x452a75 in lang_size_sections_1
/home/mliska/Programming/binutils/ld/ldlang.c:6072
#2 0x45279b in lang_size_sections_1
/home/mliska/Programming/binutils/ld/ldlang.c:5810
#3 0x471cc2 in one_lang_size_sections_pass
/home/mliska/Programming/binutils/ld/ldlang.c:6278
#4 0x471cc2 in lang_size_sections
/home/mliska/Programming/binutils/ld/ldlang.c:6390
#5 0x471cc2 in lang_relax_sections
/home/mliska/Programming/binutils/ld/ldlang.c:7659
#6 0x4d314d in ldelf_map_segments
/home/mliska/Programming/binutils/ld/ldelfgen.c:40
#7 0x4829cd in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:8164
#8 0x41338a in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#9 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#10 0x4158d9 in _start (/dev/shm/01aayr45/ld/ld-new+0x4158d9)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26462] New: UBSAN error: bfd/reloc.c:473:15:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26462

Bug ID: 26462
   Summary: UBSAN error: bfd/reloc.c:473:15:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=ia64-hpux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: ia64-hpux
PASS: objcopy compress debug sections in archive with zlib-gnu
Executing on host: /dev/shm/_1ja1wuz/binutils/objdump -W
tmpdir/dw2-1-compressed.o  /dev/null objdump.out (timeout = 300)
/home/mliska/Programming/binutils/bfd/reloc.c:473:15: runtime error: shift
exponent 4294967295 is too large for 64-bit type 'long unsigned int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26465] New: ASAN error: in bfd_elf_m68k_set_target_options /home/mliska/Programming/binutils/bfd/elf32-m68k.c:4519

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26465

Bug ID: 26465
   Summary: ASAN error: in bfd_elf_m68k_set_target_options
/home/mliska/Programming/binutils/bfd/elf32-m68k.c:451
9
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=m68k-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: m68k-elf
FAIL: ld-elf/pr20528b
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -T pr21884.t -o
tmpdir/dump tmpdir/pr21884a.o tmpdir/pr21884b.o  2>&1}  /dev/null dump.tmp
(timeout = 300)
==27509==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60700068 at pc 0x00590d7c bp 0x7fffbd50 sp 0x7fffbd48
#0 0x590d7b in bfd_elf_m68k_set_target_options
/home/mliska/Programming/binutils/bfd/elf32-m68k.c:4519
#1 0x480a82 in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:7895
#2 0x413cca in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#3 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#4 0x416219 in _start (/dev/shm/wh0t2zxn/ld/ld-new+0x416219)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26464] New: UBSAN error: bfd/elf32-m32r.c:2695:20:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26464

Bug ID: 26464
   Summary: UBSAN error: bfd/elf32-m32r.c:2695:20:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=m32r-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: m32r-linux
PASS: ld-elf/pr21904
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -pie
--no-dynamic-linker -o tmpdir/dump tmpdir/pr22269.o  2>&1}  /dev/null dump.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-m32r.c:2695:20: runtime error: left
shift of negative value -1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26466] New: UBSAN error: bfd/elf32-mep.c:300:46:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26466

Bug ID: 26466
   Summary: UBSAN error: bfd/elf32-mep.c:300:46:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mep-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mep-elf
FAIL: pr26103
Executing on host: sh -c {./ld-new   -o tmpdir/mep1
-T/home/mliska/Programming/binutils/ld/testsuite/ld-mep/mep1.ld tmpdir/mep1.o
2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-mep.c:300:46: runtime error: left
shift of negative value -1048576

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26468] New: UBSAN error: gas/config/tc-mep.c:1684:42:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26468

Bug ID: 26468
   Summary: UBSAN error: gas/config/tc-mep.c:1684:42:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mep-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mep-elf
FAIL: branch1.le
Executing on host: sh -c {../as-new  -EB  -o tmpdir/dj1.o
/home/mliska/Programming/binutils/gas/testsuite/gas/mep/dj1.s 2>&1}  /dev/null
dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-mep.c:1684:42: runtime error:
left shift of negative value -8388604

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26469] New: UBSAN error: bfd/elflink.c:8742:7:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26469

Bug ID: 26469
   Summary: UBSAN error: bfd/elflink.c:8742:7:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mep-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mep-elf
FAIL: assembling relocs-refs
Executing on host: /dev/shm/8p3qrweg/ld/ld-new relocs-junk1.o relocs-syms.o
relocs-junk2.o relocs-refs.o --defsym __stack=0x10 --defsym
__sbss_end=0x1000 -e 1233 -EL -o relocs.x(timeout = 300)
/home/mliska/Programming/binutils/bfd/elflink.c:8742:7: runtime error: shift
exponent 6148914691236511722 is too large for 64-bit type 'long unsigned int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26467] New: UBSAN error: gas/cgen.c:762:32:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26467

Bug ID: 26467
   Summary: UBSAN error: gas/cgen.c:762:32:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mep-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mep-elf
PASS: .exitm outside of a macro
Executing on host: sh -c {../as-new  -EB  -o tmpdir/allinsn.o
/home/mliska/Programming/binutils/gas/testsuite/gas/mep/allinsn.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/cgen.c:762:32: runtime error: shift
exponent 18446744073709551615 is too large for 64-bit type 'long int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26470] New: UBSAN error: bfd/elf32-metag.c:1610:25:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26470

Bug ID: 26470
   Summary: UBSAN error: bfd/elf32-metag.c:1610:25:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=metag-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: metag-linux
PASS: ld-elf/pr21904
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -pie
--no-dynamic-linker -o tmpdir/dump tmpdir/pr22269.o  2>&1}  /dev/null dump.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf32-metag.c:1610:25: runtime error:
left shift of negative value -1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26471] New: UBSAN error: gas/config/tc-metag.c:7038:14:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26471

Bug ID: 26471
   Summary: UBSAN error: gas/config/tc-metag.c:7038:14:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=metag-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: metag-linux
PASS: pr26103
Executing on host: sh -c {/dev/shm/tyiwvp53/ld/../gas/as-new  
-I/home/mliska/Programming/binutils/ld/testsuite/ld-metag   -o tmpdir/pcrel.o 
/home/mliska/Programming/binutils/ld/testsuite/ld-metag/pcrel.s 2>&1} 
/dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-metag.c:7038:14: runtime error:
left shift of 11206656 by 8 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26474] New: UBSAN error: gas/config/tc-mips.c:4723:16:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26474

Bug ID: 26474
   Summary: UBSAN error: gas/config/tc-mips.c:4723:16:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mips-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mips-linux
FAIL: mips bltzal
Executing on host: sh -c {../as-new  -32 -mmsa --defsym insn_log2=2
-march=interaptiv-mr2 -mtune=interaptiv-mr2  -o tmpdir/msa.o
/home/mliska/Programming/binutils/gas/testsuite/gas/mips/msa.s 2>&1}  /dev/null
dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-mips.c:4723:16: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26472] New: UBSAN error: gas/config/tc-mips.c:4671:11:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26472

Bug ID: 26472
   Summary: UBSAN error: gas/config/tc-mips.c:4671:11:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mips-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mips-linux
FAIL: MIPS n64 symbol export class test (final shared object)
Executing on host: sh -c {/dev/shm/4h8nit8i/ld/../gas/as-new  
-I/home/mliska/Programming/binutils/ld/testsuite/ld-mips-elf   -o
tmpdir/mips-flags-1.o -mabi=eabi -mgp32
/home/mliska/Programming/binutils/ld/testsuite/ld-mips-elf/jr.s 2>&1} 
/dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-mips.c:4671:11: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26473] New: UBSAN error: gas/config/tc-mips.c:9579:25:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26473

Bug ID: 26473
   Summary: UBSAN error: gas/config/tc-mips.c:9579:25:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mips-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mips-linux
FAIL: MIPS -mgp32 -mfp64
Executing on host: sh -c {../as-new  -mabi=o64 -march=8000 -EB -mfp32  -o
tmpdir/mips-gp64-fp32.o
/home/mliska/Programming/binutils/gas/testsuite/gas/mips/mips-gp64-fp32.s 2>&1}
 /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-mips.c:9579:25: runtime error:
left shift of 65535 by 17 places cannot be represented in type 'int'


UBSAN error: gas/config/tc-mips.c:9583:24: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mips-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mips-linux
PASS: MIPS ld-st-la bad constants (ABI o32, mips3, shared)
Executing on host: sh -c {../as-new  -mabi=eabi -mips3 -G8 -EB  -o
tmpdir/ldstla-sym32.o
/home/mliska/Programming/binutils/gas/testsuite/gas/mips/ldstla-sym32.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-mips.c:9583:24: runtime error:
left shift of 65535 by 16 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26477] New: UBSAN error: bfd/elfxx-mips.c:2694:36:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26477

Bug ID: 26477
   Summary: UBSAN error: bfd/elfxx-mips.c:2694:36:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mipstx39-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mipstx39-elf
PASS: ld-elf/pr349
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -shared -T
reloc-discard.ld -o tmpdir/dump tmpdir/reloc-discard.o  2>&1}  /dev/null
dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elfxx-mips.c:2694:36: runtime error: left
shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26475] New: UBSAN error: bfd/elfxx-mips.c:12180:3:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26475

Bug ID: 26475
   Summary: UBSAN error: bfd/elfxx-mips.c:12180:3:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mips-sgi-irix6 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mips-sgi-irix6
PASS: pr26103
Executing on host: sh -c {./ld-new   -o
tmpdir/libmips-o32-copyreloc-comm-data.so -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-mips-elf -melf32bsmip
-shared tmpdir/comm-data1.o  2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elfxx-mips.c:12180:3: runtime error: null
pointer passed as argument 1, which is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26479] New: UBSAN error: gas/config/tc-nios2.c:244:36:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26479

Bug ID: 26479
   Summary: UBSAN error: gas/config/tc-nios2.c:244:36:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=nios2-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: nios2-linux
PASS: NIOS2 R2 align_fill
Executing on host: sh -c {../as-new -o tmpdir/align_fill.o
/home/mliska/Programming/binutils/gas/testsuite/gas/nios2/align_fill.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-nios2.c:244:36: runtime error:
left shift of 222 by 24 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26476] New: UBSAN error: bfd/elfxx-mips.c:5369:16:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26476

Bug ID: 26476
   Summary: UBSAN error: bfd/elfxx-mips.c:5369:16:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mips-sgi-irix6 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mips-sgi-irix6
FAIL: PR ld/21375 in shared library (MIPS16)
Executing on host: sh -c {./ld-new   -o tmpdir/pr21375m16h.so -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-mips-elf -melf32bsmip -e
foo -T pr21375.ld  -shared tmpdir/pr21375-mips16.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elfxx-mips.c:5369:16: runtime error: left
shift of 973 by 22 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26478] New: UBSAN error: bfd/mmo.c:2941:3:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26478

Bug ID: 26478
   Summary: UBSAN error: bfd/mmo.c:2941:3:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=mmix CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: mmix
PASS: ld-mmix/b-loc64k
Executing on host: sh -c {/dev/shm/ueb5xm2p/ld/../binutils/objcopy  tmpdir/dump
tmpdir/dump1 2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/mmo.c:2941:3: runtime error: null pointer
passed as argument 2, which is declared to never be null

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26480] New: UBSAN error: gas/config/tc-nios2.c:1634:17:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26480

Bug ID: 26480
   Summary: UBSAN error: gas/config/tc-nios2.c:1634:17:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=nios2-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: nios2-linux
PASS: NIOS2 CDX or.n
Executing on host: sh -c {../as-new  -march=r2  -o tmpdir/cdx_pop.o
/home/mliska/Programming/binutils/gas/testsuite/gas/nios2/cdx_pop.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-nios2.c:1634:17: runtime error:
left shift of 1 by 31 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26483] New: ASAN error: in ppc_elf_link_params /home/mliska/Programming/binutils/bfd/elf32-ppc.c:2314

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26483

Bug ID: 26483
   Summary: ASAN error: in ppc_elf_link_params
/home/mliska/Programming/binutils/bfd/elf32-ppc.c:2314
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-eabisim CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: powerpc-eabisim
FAIL: ld-elf/pr20528b
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -T pr21884.t -o
tmpdir/dump tmpdir/pr21884a.o tmpdir/pr21884b.o  2>&1}  /dev/null dump.tmp
(timeout = 300)
==52186==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60700068 at pc 0x005dfb01 bp 0x7fffbcc0 sp 0x7fffbcb8
#0 0x5dfb00 in ppc_elf_link_params
/home/mliska/Programming/binutils/bfd/elf32-ppc.c:2314
#1 0x4871e2 in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:7895
#2 0x41a0fa in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#3 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#4 0x41c949 in _start (/dev/shm/upzi299f/ld/ld-new+0x41c949)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26482] New: ASAN error: in _bfd_xcoff_sizeof_headers /home/mliska/Programming/binutils/bfd/coff-rs6000.c:2585

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26482

Bug ID: 26482
   Summary: ASAN error: in _bfd_xcoff_sizeof_headers
/home/mliska/Programming/binutils/bfd/coff-rs6000.c:25
85
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-aix5.1 CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: powerpc-aix5.1
PASS: -l: test
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-misc  -e 0 --defsym foo=1
tmpdir/start.o tmpdir/libfoo.a -o tmpdir/dump tmpdir/dummy.o  2>&1}  /dev/null
dump.tmp (timeout = 300)
==36732==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x603005d0 at pc 0x00569c5a bp 0x7fffb810 sp 0x7fffb808
#0 0x569c59 in _bfd_xcoff_sizeof_headers
/home/mliska/Programming/binutils/bfd/coff-rs6000.c:2585
#1 0x499401 in fold_name /home/mliska/Programming/binutils/ld/ldexp.c:703
#2 0x499401 in exp_fold_tree_1
/home/mliska/Programming/binutils/ld/ldexp.c:1242
#3 0x497ee0 in fold_binary /home/mliska/Programming/binutils/ld/ldexp.c:564
#4 0x497ee0 in exp_fold_tree_1
/home/mliska/Programming/binutils/ld/ldexp.c:1040
#5 0x497bc1 in fold_binary /home/mliska/Programming/binutils/ld/ldexp.c:530
#6 0x497bc1 in exp_fold_tree_1
/home/mliska/Programming/binutils/ld/ldexp.c:1040
#7 0x49a108 in exp_fold_tree_1
/home/mliska/Programming/binutils/ld/ldexp.c:1059
#8 0x450b5f in lang_size_sections_1
/home/mliska/Programming/binutils/ld/ldlang.c:6099
#9 0x46f27f in one_lang_size_sections_pass
/home/mliska/Programming/binutils/ld/ldlang.c:6278
#10 0x46f27f in lang_size_sections
/home/mliska/Programming/binutils/ld/ldlang.c:6390
#11 0x480350 in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:8160
#12 0x4114f2 in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#13 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#14 0x413899 in _start (/dev/shm/viq6a6j8/ld/ld-new+0x413899)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26481] New: UBSAN error: gas/config/tc-pj.c:281:31:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26481

Bug ID: 26481
   Summary: UBSAN error: gas/config/tc-pj.c:281:31:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=pj-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: pj-elf
PASS: .exitm outside of a macro
Executing on host: sh -c {../as-new -o tmpdir/ops.o
/home/mliska/Programming/binutils/gas/testsuite/gas/pj/ops.s 2>&1}  /dev/null
dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-pj.c:281:31: runtime error:
index 2 out of bounds for type 'unsigned char [2]'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26485] New: UBSAN error: bfd/elf64-ppc.c:16582:18:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26485

Bug ID: 26485
   Summary: UBSAN error: bfd/elf64-ppc.c:16582:18:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-eabisim CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: powerpc-eabisim
FAIL: TLS dynamic exec (--no-tls-optimize)
Executing on host: sh -c {./ld-new   -o tmpdir/tls.so -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -shared -melf64ppc
--no-plt-align --no-ld-generated-unwind-info --hash-style=sysv tmpdir/tls.o  
2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:16582:18: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26486] New: UBSAN error: bfd/elf64-ppc.c:5650:52:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26486

Bug ID: 26486
   Summary: UBSAN error: bfd/elf64-ppc.c:5650:52:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-eabisim CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: powerpc-eabisim
FAIL: TLSTOC dynamic exec (--no-tls-optimize)
Executing on host: sh -c {./ld-new   -o tmpdir/tlstoc.so -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -shared -melf64ppc
--no-plt-align --no-ld-generated-unwind-info --hash-style=sysv tmpdir/tlstoc.o 
 2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:5650:52: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26486] UBSAN error: bfd/elf64-ppc.c:5650:52:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26486

--- Comment #1 from Martin Liska  ---

UBSAN error: bfd/elf64-ppc.c:15911:11: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-eabisim CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: powerpc-eabisim
FAIL: ld-powerpc/relbrlt
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc  -melf64ppc -shared
-o tmpdir/dump tmpdir/elfv2.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:15911:11: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26486] UBSAN error: bfd/elf64-ppc.c:5650:52:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26486

--- Comment #2 from Martin Liska  ---
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-eabisim CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: powerpc-eabisim
FAIL: ld-powerpc/relbrlt
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc  -melf64ppc -shared
-o tmpdir/dump tmpdir/elfv2.o  2>&1}  /dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:15911:11: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26488] New: UBSAN error: bfd/elf64-ppc.c:7830:13:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26488

Bug ID: 26488
   Summary: UBSAN error: bfd/elf64-ppc.c:7830:13:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: powerpc-linux
PASS: TLS helper old shared lib
Executing on host: sh -c {./ld-new   -o tmpdir/tlsexe -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -melf64ppc
--no-plt-align --no-ld-generated-unwind-info --hash-style=sysv tmpdir/tls.o
tmpdir/libtlslib.so   2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:7830:13: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26487] New: UBSAN error: bfd/elf64-ppc.c:7909:36:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26487

Bug ID: 26487
   Summary: UBSAN error: bfd/elf64-ppc.c:7909:36:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: powerpc-linux
PASS: TLS static exec (markers)
Executing on host: sh -c {./ld-new   -o tmpdir/tls -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -melf64ppc
--no-plt-align tmpdir/tls.o tmpdir/tlslib.o  2>&1}  /dev/null ld.tmp (timeout =
300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:7909:36: runtime error:
member access within null pointer of type 'const struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26489] New: ASAN error: in ppc64_elf_size_stubs bfd/elf64-ppc.c:13389

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26489

Bug ID: 26489
   Summary: ASAN error: in ppc64_elf_size_stubs
bfd/elf64-ppc.c:13389
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: powerpc-linux
FAIL: TLSdesc2
Executing on host: sh -c {./ld-new   -o tmpdir/tlsdesc3 -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -melf64ppc
--no-tls-optimize tmpdir/tlsdll.o tmpdir/tlsdesc.o  2>&1}  /dev/null ld.tmp
(timeout = 300)
==31104==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x618007a0 at pc 0x00950b99 bp 0x7fffb9c0 sp 0x7fffb9b8
#0 0x950b98 in ppc64_elf_size_stubs
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:13389
#1 0x4e522b in gldelf64ppc_after_allocation
/dev/shm/ygujf3tf/ld/eelf64ppc.c:568
#2 0x489e9d in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:8164
#3 0x41a0fa in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#4 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#5 0x41c949 in _start (/dev/shm/ygujf3tf/ld/ld-new+0x41c949)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26490] New: UBSAN error: bfd/elf64-ppc.c:15931:11:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26490

Bug ID: 26490
   Summary: UBSAN error: bfd/elf64-ppc.c:15931:11:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: powerpc-linux
FAIL: sym@tocbase
Executing on host: sh -c {./ld-new   -o tmpdir/tocopt -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -melf64ppc
tmpdir/tocopt.o  2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:15931:11: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'


UBSAN error: bfd/elf64-ppc.c:15957:6: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: powerpc-linux
FAIL: notoc3
Executing on host: sh -c {./ld-new   -o tmpdir/pcrelopt -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -melf64ppc
--hash-style=gnu tmpdir/pcrelopt.o tmpdir/symtocbase.so 2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:15957:6: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'


UBSAN error: bfd/elf64-ppc.c:15981:11: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: powerpc-linux
FAIL: notoc3
Executing on host: sh -c {./ld-new   -o tmpdir/pcrelopt -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -melf64ppc
--hash-style=gnu tmpdir/pcrelopt.o tmpdir/symtocbase.so 2>&1}  /dev/null ld.tmp
(timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:15981:11: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26484] New: UBSAN error: bfd/elf64-ppc.c:16107:6:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26484

Bug ID: 26484
   Summary: UBSAN error: bfd/elf64-ppc.c:16107:6:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc-eabisim CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: powerpc-eabisim
FAIL: TLS dynamic exec (--no-tls-optimize)
Executing on host: sh -c {./ld-new   -o tmpdir/tls.so -z norelro
-L/home/mliska/Programming/binutils/ld/testsuite/ld-powerpc -shared -melf64ppc
--no-plt-align --no-ld-generated-unwind-info --hash-style=sysv tmpdir/tls.o  
2>&1}  /dev/null ld.tmp (timeout = 300)
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:16107:6: runtime error:
member access within null pointer of type 'struct ppc_link_hash_entry'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26492] New: ASAN error: in ppc64_elf_before_check_relocs /home/mliska/Programming/binutils/bfd/elf64-ppc.c:4337

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26492

Bug ID: 26492
   Summary: ASAN error: in ppc64_elf_before_check_relocs
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:4337
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=powerpc64-freebsd CFLAGS="-g -O2 -fsanitize=address,undefined
-Wno-error" CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
LDFLAGS="-ldl"
Target: powerpc64-freebsd
FAIL: ld-elf/pr20528b
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -T pr21884.t -o
tmpdir/dump tmpdir/pr21884a.o tmpdir/pr21884b.o  2>&1}  /dev/null dump.tmp
(timeout = 300)
==48057==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60700068 at pc 0x005bf358 bp 0x7fffb510 sp 0x7fffb508
#0 0x5bf357 in ppc64_elf_before_check_relocs
/home/mliska/Programming/binutils/bfd/elf64-ppc.c:4337
#1 0x767e3a in elf_link_add_object_symbols
/home/mliska/Programming/binutils/bfd/elflink.c:5623
#2 0x767e3a in bfd_elf_link_add_symbols
/home/mliska/Programming/binutils/bfd/elflink.c:5917
#3 0x470b49 in load_symbols
/home/mliska/Programming/binutils/ld/ldlang.c:3156
#4 0x473f2f in open_input_bfds
/home/mliska/Programming/binutils/ld/ldlang.c:3626
#5 0x486065 in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:7906
#6 0x418f5a in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#7 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#8 0x41b709 in _start (/dev/shm/2yzejl3_/ld/ld-new+0x41b709)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26493] New: UBSAN error: elfnn-riscv.c:3465:7:

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26493

Bug ID: 26493
   Summary: UBSAN error: elfnn-riscv.c:3465:7:
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=riscv32-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: riscv32-elf
PASS: plugin API enabled
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-riscv-elf  -melf32lriscv -o
tmpdir/dump tmpdir/call-relax-0.o tmpdir/call-relax-1.o tmpdir/call-relax-2.o
tmpdir/call-relax-3.o  2>&1}  /dev/null dump.tmp (timeout = 300)
elfnn-riscv.c:3465:7: runtime error: left shift of negative value -1


UBSAN error: elfnn-riscv.c:3474:8: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=riscv32-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: riscv32-elf
PASS: plugin API enabled
Executing on host: sh -c {./ld-new  
-L/home/mliska/Programming/binutils/ld/testsuite/ld-riscv-elf  -melf32lriscv -o
tmpdir/dump tmpdir/call-relax-0.o tmpdir/call-relax-1.o tmpdir/call-relax-2.o
tmpdir/call-relax-3.o  2>&1}  /dev/null dump.tmp (timeout = 300)
elfnn-riscv.c:3474:8: runtime error: left shift of negative value -1


UBSAN error: gas/config/tc-riscv.c:1970:13: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=riscv32-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: riscv32-elf
FAIL: gas/riscv/li32
Executing on host: sh -c {../as-new  -march=rv64ic -mabi=lp64  -o tmpdir/li64.o
/home/mliska/Programming/binutils/gas/testsuite/gas/riscv/li64.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-riscv.c:1970:13: runtime error:
left shift of negative value -1


UBSAN error: gas/config/tc-riscv.c:1749:34: 
The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=riscv32-elf CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: riscv32-elf
FAIL: gas/riscv/no-relax-reloc
Executing on host: sh -c {../as-new  -march=rv32i -mcsr-check  -o
tmpdir/priv-reg.o
/home/mliska/Programming/binutils/gas/testsuite/gas/riscv/priv-reg.s 2>&1} 
/dev/null dump.tmp (timeout = 300)
/home/mliska/Programming/binutils/gas/config/tc-riscv.c:1749:34: runtime error:
left shift of 4095 by 20 places cannot be represented in type 'int'

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/26494] New: ASAN error: in bfd_elf_s390_set_options /home/mliska/Programming/binutils/bfd/elf64-s390.c:3802

2020-08-20 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=26494

Bug ID: 26494
   Summary: ASAN error: in bfd_elf_s390_set_options
/home/mliska/Programming/binutils/bfd/elf64-s390.c:380
2
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
  Target Milestone: ---

The following fails when I build binutils with:
configure --build=x86_64-linux --disable-nls --disable-gdb --disable-gdbserver
--disable-sim --disable-readline --disable-libdecnumber --enable-obsolete
--target=s390x-linux CFLAGS="-g -O2 -fsanitize=address,undefined -Wno-error"
CXXLAGS="-g -O2 -fsanitize=address,undefined -Wno-error" LDFLAGS="-ldl"
Target: s390x-linux
PASS: ld-elf/pr21562n
Executing on host: sh -c {./ld-new -z norelro 
-L/home/mliska/Programming/binutils/ld/testsuite/ld-elf  -T pr21884.t -o
tmpdir/dump tmpdir/pr21884a.o tmpdir/pr21884b.o  2>&1}  /dev/null dump.tmp
(timeout = 300)
==39456==ERROR: AddressSanitizer: heap-buffer-overflow on address
0x60700068 at pc 0x005a9246 bp 0x7fffbcd0 sp 0x7fffbcc8
#0 0x5a9245 in bfd_elf_s390_set_options
/home/mliska/Programming/binutils/bfd/elf64-s390.c:3802
#1 0x4c3652 in s390_elf_create_output_section_statements
/dev/shm/4n97slkz/ld/eelf64_s390.c:62
#2 0x480f52 in lang_process
/home/mliska/Programming/binutils/ld/ldlang.c:7895
#3 0x4140da in main /home/mliska/Programming/binutils/ld/ldmain.c:494
#4 0x76adacc9 in __libc_start_main (/lib64/libc.so.6+0x26cc9)
#5 0x4166e9 in _start (/dev/shm/4n97slkz/ld/ld-new+0x4166e9)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


  1   2   >