[Bug gas/27129] New: [aarch64] broken logical immediate operations in NDEBUG builds
https://sourceware.org/bugzilla/show_bug.cgi?id=27129 Bug ID: 27129 Summary: [aarch64] broken logical immediate operations in NDEBUG builds Product: binutils Version: 2.36 (HEAD) Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: d_garry at mail dot ru Target Milestone: --- When -NDEBUG is defined during build, it transforms "assert(anything)" into something like "(void*)(0)" - at least in Linux, as defined in : ifdef NDEBUG ... # define assert(expr) (__ASSERT_VOID_CAST (0)) ... endif Thus in case when any function is about to be called from assert, it will be silently ignored. Example (see opcodes/aarch64-asm.c:555): /* The constraint check should have guaranteed this wouldn't happen. */ assert (aarch64_logical_immediate_p (imm, esize, &value)); If -NDEBUG-ged, aarch64_logical_immediate_p() simply won't be called, making aarch64 logical operations (e.g. AND opcode) work incorrectly. Seems that regression occured in commit 535b785fb0. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/27128] nm -P portable output format regression
https://sourceware.org/bugzilla/show_bug.cgi?id=27128 Alan Modra changed: What|Removed |Added Last reconfirmed||2020-12-30 Assignee|unassigned at sourceware dot org |amodra at gmail dot com Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/27128] nm -P portable output format regression
https://sourceware.org/bugzilla/show_bug.cgi?id=27128 --- Comment #1 from Alan Modra --- Regressed with commit 7e6e972f74 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/27131] New: Division by zero in elf.c
https://sourceware.org/bugzilla/show_bug.cgi?id=27131 Bug ID: 27131 Summary: Division by zero in elf.c Product: binutils Version: 2.35.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: sirus.shahini at gmail dot com Target Milestone: --- Created attachment 13085 --> https://sourceware.org/bugzilla/attachment.cgi?id=13085&action=edit Sample input Hello, Our fuzzer detected a Division-By-Zero bug in "_bfd_elf_write_secondary_reloc_section(..)" function in "bfd/elf.c". The fuzzer-generated input that can trigger the bug has been attached. The bug can be triggered using "strip" program (V 2.35.1) and by passing "--strip-unneeded" option. Regards -- You are receiving this mail because: You are on the CC list for the bug.