public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [RFC,Patch,AVR]: ad PR13503: Add new relocs to TC_VALIDATE_FIX?
@ 2012-08-15  7:57 Georg-Johann Lay
  2012-08-26 20:42 ` Ping: " Georg-Johann Lay
  0 siblings, 1 reply; 5+ messages in thread
From: Georg-Johann Lay @ 2012-08-15  7:57 UTC (permalink / raw)
  To: binutils; +Cc: Eric Weddington, Denis Chertykov

[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]

Hi, in gas/config/tc-avr.h there is the following comment
to TC_VALIDATE_FIX:

/* We don't want gas to fixup the following program memory related 
relocations.
    We will need them in case that we want to do linker relaxation.
    We could in principle keep these fixups in gas when not relaxing.
    However, there is no serious performance penilty when making the linker
    make the fixup work.  Check also that fx_addsy is not NULL, in order 
to make
    sure that the fixup refers to some sort of lable.  */

PR13503 introduced new relocs that are not mentioned in TC_VALIDATE_FIX.

The attached patch adds the new BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
BFD_RELOC_AVR_8_HLO to that exclude list.

I cannot say if these new relocs need to be handled there, if the must
be handled there or must *not* be handled there.  I just noticed that
the new relocs are missing there, but no clue if that's good or bad or
simply does not matter...

Thus please review this patch.  And in the case it is actually needed,
please apply it.


Johann


gas/
	PR 13503
	* config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
	BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.

[-- Attachment #2: bin-pr13503-valid-fix.diff --]
[-- Type: text/plain, Size: 943 bytes --]

diff --git a/gas/config/tc-avr.h b/gas/config/tc-avr.h
index 777a9df..e82bd01 100644
--- a/gas/config/tc-avr.h
+++ b/gas/config/tc-avr.h
@@ -139,11 +139,14 @@ extern long md_pcrel_from_section (struct fix *, segT);
        || FIXP->fx_r_type == BFD_RELOC_AVR_LO8_LDI_PM_NEG    \
        || FIXP->fx_r_type == BFD_RELOC_AVR_HI8_LDI_PM_NEG    \
        || FIXP->fx_r_type == BFD_RELOC_AVR_HH8_LDI_PM_NEG    \
+       || FIXP->fx_r_type == BFD_RELOC_AVR_8_LO              \
+       || FIXP->fx_r_type == BFD_RELOC_AVR_8_HI              \
+       || FIXP->fx_r_type == BFD_RELOC_AVR_8_HLO             \
        || FIXP->fx_r_type == BFD_RELOC_AVR_16_PM)            \
       && (FIXP->fx_addsy))			             \
     {                                                        \
       goto SKIP;                                             \
-   }
+    }
 
 /* This target is buggy, and sets fix size too large.  */
 #define TC_FX_SIZE_SLACK(FIX) 2

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Ping: [RFC,Patch,AVR]: ad PR13503: Add new relocs to TC_VALIDATE_FIX?
  2012-08-15  7:57 [RFC,Patch,AVR]: ad PR13503: Add new relocs to TC_VALIDATE_FIX? Georg-Johann Lay
@ 2012-08-26 20:42 ` Georg-Johann Lay
  2012-08-28  2:53   ` Denis Chertykov
  0 siblings, 1 reply; 5+ messages in thread
From: Georg-Johann Lay @ 2012-08-26 20:42 UTC (permalink / raw)
  To: binutils; +Cc: Eric Weddington, Denis Chertykov

Just a ping for

http://sourceware.org/ml/binutils/2012-08/msg00270.html

> Hi, in gas/config/tc-avr.h there is the following comment
> to TC_VALIDATE_FIX:
> 
> /* We don't want gas to fixup the following program memory related 
> relocations.
>    We will need them in case that we want to do linker relaxation.
>    We could in principle keep these fixups in gas when not relaxing.
>    However, there is no serious performance penilty when making the linker
>    make the fixup work.  Check also that fx_addsy is not NULL, in order 
> to make
>    sure that the fixup refers to some sort of lable.  */
> 
> PR13503 introduced new relocs that are not mentioned in TC_VALIDATE_FIX.
> 
> The attached patch adds the new BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
> BFD_RELOC_AVR_8_HLO to that exclude list.
> 
> I cannot say if these new relocs need to be handled there, if the must
> be handled there or must *not* be handled there.  I just noticed that
> the new relocs are missing there, but no clue if that's good or bad or
> simply does not matter...
> 
> Thus please review this patch.  And in the case it is actually needed,
> please apply it.
> 
> 
> Johann
> 
> 
> gas/
>     PR 13503
>     * config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
>     BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ping: [RFC,Patch,AVR]: ad PR13503: Add new relocs to TC_VALIDATE_FIX?
  2012-08-26 20:42 ` Ping: " Georg-Johann Lay
@ 2012-08-28  2:53   ` Denis Chertykov
  2012-09-07 20:27     ` Georg-Johann Lay
  0 siblings, 1 reply; 5+ messages in thread
From: Denis Chertykov @ 2012-08-28  2:53 UTC (permalink / raw)
  To: Georg-Johann Lay; +Cc: binutils, Eric Weddington

2012/8/26 Georg-Johann Lay <avr@gjlay.de>:
> Just a ping for
>
> http://sourceware.org/ml/binutils/2012-08/msg00270.html
>
>> Hi, in gas/config/tc-avr.h there is the following comment
>> to TC_VALIDATE_FIX:
>>
>> /* We don't want gas to fixup the following program memory related
>> relocations.
>>    We will need them in case that we want to do linker relaxation.
>>    We could in principle keep these fixups in gas when not relaxing.
>>    However, there is no serious performance penilty when making the linker
>>    make the fixup work.  Check also that fx_addsy is not NULL, in order to
>> make
>>    sure that the fixup refers to some sort of lable.  */
>>
>> PR13503 introduced new relocs that are not mentioned in TC_VALIDATE_FIX.
>>
>> The attached patch adds the new BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
>> BFD_RELOC_AVR_8_HLO to that exclude list.
>>
>> I cannot say if these new relocs need to be handled there, if the must
>> be handled there or must *not* be handled there.  I just noticed that
>> the new relocs are missing there, but no clue if that's good or bad or
>> simply does not matter...
>>
>> Thus please review this patch.  And in the case it is actually needed,
>> please apply it.
>>
>>
>> Johann
>>
>>
>> gas/
>>     PR 13503
>>     * config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
>>     BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.
>>
>

Seems right, but I don't remember some BFD nuances.

Denis.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ping: [RFC,Patch,AVR]: ad PR13503: Add new relocs to TC_VALIDATE_FIX?
  2012-08-28  2:53   ` Denis Chertykov
@ 2012-09-07 20:27     ` Georg-Johann Lay
  2012-09-11 17:02       ` Denis Chertykov
  0 siblings, 1 reply; 5+ messages in thread
From: Georg-Johann Lay @ 2012-09-07 20:27 UTC (permalink / raw)
  To: Denis Chertykov; +Cc: binutils, Eric Weddington

Denis Chertykov schrieb:
> Georg-Johann Lay:
>> Just a ping for
>>
>> http://sourceware.org/ml/binutils/2012-08/msg00270.html
>>
>>> Hi, in gas/config/tc-avr.h there is the following comment
>>> to TC_VALIDATE_FIX:
>>>
>>> /* We don't want gas to fixup the following program memory related
>>> relocations.
>>>    We will need them in case that we want to do linker relaxation.
>>>    We could in principle keep these fixups in gas when not relaxing.
>>>    However, there is no serious performance penilty when making the linker
>>>    make the fixup work.  Check also that fx_addsy is not NULL, in order to
>>> make
>>>    sure that the fixup refers to some sort of lable.  */
>>>
>>> PR13503 introduced new relocs that are not mentioned in TC_VALIDATE_FIX.
>>>
>>> The attached patch adds the new BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
>>> BFD_RELOC_AVR_8_HLO to that exclude list.
>>>
>>> I cannot say if these new relocs need to be handled there, if the must
>>> be handled there or must *not* be handled there.  I just noticed that
>>> the new relocs are missing there, but no clue if that's good or bad or
>>> simply does not matter...
>>>
>>> Thus please review this patch.  And in the case it is actually needed,
>>> please apply it.
>>>
>>>
>>> gas/
>>>     PR 13503
>>>     * config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
>>>     BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.
>>>
> 
> Seems right, but I don't remember some BFD nuances.
> 
> Denis.

If it is in order, please don't forget to install it.

Thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Ping: [RFC,Patch,AVR]: ad PR13503: Add new relocs to TC_VALIDATE_FIX?
  2012-09-07 20:27     ` Georg-Johann Lay
@ 2012-09-11 17:02       ` Denis Chertykov
  0 siblings, 0 replies; 5+ messages in thread
From: Denis Chertykov @ 2012-09-11 17:02 UTC (permalink / raw)
  To: Georg-Johann Lay; +Cc: binutils, Eric Weddington

2012/9/8 Georg-Johann Lay <avr@gjlay.de>:
> Denis Chertykov schrieb:
>>
>> Georg-Johann Lay:
>>>
>>> Just a ping for
>>>
>>> http://sourceware.org/ml/binutils/2012-08/msg00270.html
>>>
>>>> Hi, in gas/config/tc-avr.h there is the following comment
>>>> to TC_VALIDATE_FIX:
>>>>
>>>> /* We don't want gas to fixup the following program memory related
>>>> relocations.
>>>>    We will need them in case that we want to do linker relaxation.
>>>>    We could in principle keep these fixups in gas when not relaxing.
>>>>    However, there is no serious performance penilty when making the
>>>> linker
>>>>    make the fixup work.  Check also that fx_addsy is not NULL, in order
>>>> to
>>>> make
>>>>    sure that the fixup refers to some sort of lable.  */
>>>>
>>>> PR13503 introduced new relocs that are not mentioned in TC_VALIDATE_FIX.
>>>>
>>>> The attached patch adds the new BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
>>>> BFD_RELOC_AVR_8_HLO to that exclude list.
>>>>
>>>> I cannot say if these new relocs need to be handled there, if the must
>>>> be handled there or must *not* be handled there.  I just noticed that
>>>> the new relocs are missing there, but no clue if that's good or bad or
>>>> simply does not matter...
>>>>
>>>> Thus please review this patch.  And in the case it is actually needed,
>>>> please apply it.
>>>>
>>>>
>>>> gas/
>>>>     PR 13503
>>>>     * config/tc-avr.h (TC_VALIDATE_FIX): Skip: BFD_RELOC_AVR_8_LO,
>>>>     BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HLO.
>>>>
>>
>> Seems right, but I don't remember some BFD nuances.
>>
>> Denis.
>
>
> If it is in order, please don't forget to install it.

Committed.

Denis.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-11 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-15  7:57 [RFC,Patch,AVR]: ad PR13503: Add new relocs to TC_VALIDATE_FIX? Georg-Johann Lay
2012-08-26 20:42 ` Ping: " Georg-Johann Lay
2012-08-28  2:53   ` Denis Chertykov
2012-09-07 20:27     ` Georg-Johann Lay
2012-09-11 17:02       ` Denis Chertykov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).