https://sourceware.org/bugzilla/show_bug.cgi?id=17995
Bug ID: 17995
Summary: buffer overrun in verilog bfd backend
Product: binutils
Version: 2.26 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: branko.drevensek at gmail dot com
objcopy -O verilog...
Expected output:
@00000000
00 00 00 00 00 00 00 00 0F C6 00 00 00 00 00 00
0D CE 00 00 00 00 00 00 0D 8E 00 00 00 00 00 00
...
Generated output
@00000000
00 00 00 00 00 00 00 00 0F C6 00 00 00 00 00 00 2^@0D CE 00 00 00 00 00 00 0D
8E 00 00 00 00 00 00 2^@0D ...
---
Results depend on the toolchain used to build. Above results are produced if
binutils are built by developer toolset 3 on 32 bit CentOS 6.
Generic CentOS 6 binutils gives this:
objcopy -O verilog file.elf file.v
*** stack smashing detected ***: objcopy terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x4d)[0x2dedad]
/lib/libc.so.6[0x2ded5a]
/usr/lib/libbfd-2.20.51.0.2-5.42.el6.so[0x498544]
/usr/lib/libbfd-2.20.51.0.2-5.42.el6.so[0x42856c]
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils