[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/20254] New: [avr] Relocations at end of a section are not proces
From: |
senthil.thecoder at gmail dot com |
Subject: |
[Bug ld/20254] New: [avr] Relocations at end of a section are not processed in the presence of alignment directives |
Date: |
Tue, 14 Jun 2016 09:49:54 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20254
Bug ID: 20254
Summary: [avr] Relocations at end of a section are not
processed in the presence of alignment directives
Product: binutils
Version: 2.27 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: senthil.thecoder at gmail dot com
Target Milestone: ---
This fails on binutils-2_26 branch. The fix to PR 20221 does not fix this.
$ cat test.s
.text
.global _start, dest
_start:
jmp dest
.align 1
dest:
nop
rjmp dest
With
$ avr-gcc -mmcu=atmega1280 -Os -mrelax test.s -nostartfiles
$ avr-objdump -S a.out
00000000 <__ctors_end>:
0: 00 c0 rjmp .+0 ; 0x2 <dest>
00000002 <dest>:
2: 00 00 nop
4: 00 c0 rjmp .+0 ; 0x6 <_etext>
The rjmp at address 4 jumps to 0x6, instead of 0x2 (which is where dest is).
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/20254] New: [avr] Relocations at end of a section are not processed in the presence of alignment directives,
senthil.thecoder at gmail dot com <=