C6x: Fix another problem with rela. and rel. sections

Bernd Schmidt bernds@codesourcery.com
Thu Sep 23 01:58:00 GMT 2010
On 09/23/2010 01:18 AM, Joseph S. Myers wrote:

> Is it possible to test this in the linker testsuite?  That is, can the bug 
> be exercised starting with objects where each object only contains REL or 
> only contains RELA relocations, or do you need a single input containing 
> both (which the GNU assembler won't generate)?  (Specify -mgenerate-rel in 
> #source rather than #as in the .d file to have it apply only to some of 
> the input files.)  If it can be tested, a test should be added to 
> ld-tic6x.

Here's a test I came up with, based on existing tests.  It compiles the
first file with -mgenerate-rel; the first half of the regexps is copied
from one existing .d file and the second half from another.  Ok?


Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newtest.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20100923/967925e8/attachment.ksh>


More information about the Binutils mailing list