[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20221] [avr] Wrong code generated with linker relaxation for sou
senthil.thecoder at gmail dot com
[Bug ld/20221] [avr] Wrong code generated with linker relaxation for source with alignment directives
Fri, 10 Jun 2016 17:36:41 +0000
--- Comment #2 from Senthil Kumar Selvaraj <senthil.thecoder at gmail dot com>
There's another related testcase that fails even with or without the current
fix in master. It fails on binutils-2_26 branch too.
.global _start, dest
$ avr-gcc -mmcu=atmega1280 -Os -mrelax test.s -nostartfiles
$ avr-objdump -S a.out
0: 00 c0 rjmp .+0 ; 0x2 <dest>
2: 00 00 nop
4: 00 c0 rjmp .+0 ; 0x6 <_etext>
which is obviously wrong.
You are receiving this mail because:
You are on the CC list for the bug.