This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Patch, avr] Fix PR 12494 - Make relaxation consider relocations from all sections before deleting ret
- From: Joerg Wunsch <joerg dot wunsch at atmel dot com>
- To: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>
- Cc: <binutils at sourceware dot org>, <eric dot weddington at atmel dot com>, <denisc at overta dot ru>
- Date: Thu, 21 Mar 2013 14:49:56 +0100
- Subject: Re: [Patch, avr] Fix PR 12494 - Make relaxation consider relocations from all sections before deleting ret
- References: <20130321132751 dot GA9560 at atmel dot com>
As Senthil Kumar Selvaraj wrote:
> This patch fixes PR 12494 (relaxation leads to wrong code optimization),
> by considering relocations from all sections in the BFD before
> determining that it is safe to delete a ret instruction.
Since Johann reported the bug, please get his consent before committing
the patch.
--
Joerg Wunsch * Development engineer, Dresden, Germany
Atmel Automotive GmbH, Theresienstrasse 2, D-74027 Heilbronn
Geschaeftsfuehrung: Steven A. Laub, Stephen Cumming
Amtsgericht Stuttgart, Registration HRB 106594