C6x gas fix for GOT relocs

Bernd Schmidt bernds@codesourcery.com
Mon Sep 27 14:57:00 GMT 2010
On 09/23/2010 08:56 PM, Joseph S. Myers wrote:
> On Thu, 23 Sep 2010, Bernd Schmidt wrote:
> 
>> Here's a patch that adds a tic6x_fix_adjustable function to the C6x
>> assembler. Like in several other targets, we must prevent the assembler
>> from creating GOT relocs with an offset, e.g. for "const.str.1.1 + n",
>> rather than just for a symbol. Strictly speaking this isn't necessary
>> just yet as the linker has no support for these relocs, but I'm working
>> on that.
>>
>> Is the patch ok?  Does it need an extra assembler testcase?  This
>> failure shows up numerous times in the gcc testsuite.
> 
> Adding this for the GOT relocations is OK; there should be an assembler 
> test added covering each of the affected relocations.

Like this?


Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gotrelocs.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20100927/7b773b5a/attachment.ksh>


More information about the Binutils mailing list