Issue 40864 in oss-fuzz: binutils:fuzz_readelf: Direct-leak with empty stacktrace

2021-12-12 Thread sheriffbot via monorail
Updates:
Labels: -restrict-view-commit

Comment #4 on issue 40864 by sheriffbot: binutils:fuzz_readelf: Direct-leak 
with empty stacktrace
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40864#c4

This bug has been fixed. It has been opened to the public.

- Your friendly Sheriffbot

-- 
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.

[Bug ld/28686] New: [avr] linker relaxations generate incorrect value

2021-12-12 Thread j at uriah dot heep.sax.de
https://sourceware.org/bugzilla/show_bug.cgi?id=28686

Bug ID: 28686
   Summary: [avr] linker relaxations generate incorrect value
   Product: binutils
   Version: 2.37
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: j at uriah dot heep.sax.de
  Target Milestone: ---

This appears to be similar to

https://www.sourceware.org/bugzilla/show_bug.cgi?id=20545

However, as that one is "resolved fixed", opening a new bug instead.

In a setup with an assembler file requesting alignment for a particular block
of code, the ZH value for that block of code is miscalculated when linker
relaxations are requested.

Without linker relaxations, the correct code is generated.

Testcode:

.rept 300
call test
.endr
clr ZL
ldi ZH,hi8(matrix)
1:rjmp 1b
test:
ret

.balign 256
matrix:
.byte 1,2,3,4,5

Compiler (i.e. combined assembler+linker) commandline:

avr-gcc main.S -o main.elf -mmcu=atmega328 -nostartfiles -mrelax

Without -mrelax, ZH is (correctly) loaded with 5, as matrix is located at
0x500. With -mrelax, as there are 300 CALL instructions turned into RCALLs,
matrix is located at 0x300, yet the value loaded into ZH becomes 2 rather than
3.

Cross reference:

https://www.mikrocontroller.net/topic/528827

(German-language forum discussion the bug has been reported to originally.)

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


[Bug ld/28686] [avr] linker relaxations generate incorrect value

2021-12-12 Thread j at uriah dot heep.sax.de
https://sourceware.org/bugzilla/show_bug.cgi?id=28686

Joerg Wunsch  changed:

   What|Removed |Added

   Host||any
 Target||avr

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