This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Suspected bug in the current m68k gas relaxer
- To: msokolov at ivan dot Harhan dot ORG (Michael Sokolov)
- Subject: Re: Suspected bug in the current m68k gas relaxer
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 19 Apr 2000 14:07:41 -0600
- cc: binutils at sourceware dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <0004192035.AA08005@ivan.Harhan.ORG>you write:
> The patch is below. Please check it in. While we are at it, what happened t
> o my
> previous patch that fixes the relaxer's handling of flag_short_refs (-l)?
>
> > You might want to think about writing a test case which we can add to
> > the gas testsuite.
>
> Testing what?
For proper operation of the relaxing code for this case.
One way to do this is to have an assembly file which will trigger the problem
you're trying to solve. Have the assembler assemble it, then run objdump to
verify that the assembler properly relaxed the code.
Wander around gas/testsuite/* -- there should be some examples of this
technique already available that you can use as a guideline.
jeff