[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/26493] New: UBSAN error: elfnn-riscv.c:3465:7:
From: |
mliska at suse dot cz |
Subject: |
[Bug binutils/26493] New: UBSAN error: elfnn-riscv.c:3465:7: |
Date: |
Thu, 20 Aug 2020 12:40:33 +0000 |
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/26493] New: UBSAN error: elfnn-riscv.c:3465:7:,
mliska at suse dot cz <=