Suspected bug in the current m68k gas relaxer
Jeffrey A Law
law@cygnus.com
Wed Apr 19 14:15:00 GMT 2000
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
More information about the Binutils
mailing list