PATCH: Mention symbol name in non-constant .size expression
H.J. Lu
hjl.tools@gmail.com
Mon Mar 7 02:51:00 GMT 2011
On Sun, Mar 6, 2011 at 6:22 PM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:
>> Date: Sat, 5 Mar 2011 07:32:49 -0800
>> From: "H.J. Lu" <hongjiu.lu@intel.com>
>
>> @@ -1,3 +1,7 @@
>> +2011-03-05 H.J. Lu <hongjiu.lu@intel.com>
>> +
>> + * gas/elf/bad-size.err: Updated.
>> +
>> 2010-03-08 H.J. Lu <hongjiu.lu@intel.com>
>>
>> PR gas/9966
>
>> diff --git a/gas/testsuite/gas/elf/bad-size.err b/gas/testsuite/gas/elf/bad-size.err
>> index 5e01ef2..a5bfc31 100644
>> --- a/gas/testsuite/gas/elf/bad-size.err
>> +++ b/gas/testsuite/gas/elf/bad-size.err
>> @@ -1,2 +1,2 @@
>> .*bad-size\.s: Assembler messages:
>> -.*bad-size\.s:6: Error: .*
>> +.*bad-size\.s:6: Error:.*`_test_nop'.*
>>
>
>
> That fails for cris-elf and cris-axis-linux-gnu. I still get:
>
> ../as-new -o dump.o /tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/elf/bad-size.s
> Executing on host: sh -c {../as-new -o dump.o /tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/elf/bad-size.s 2>&1}
> /dev/null gas.out (timeout = 300)
> /tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/elf/bad-size.s: Assembler messages:
> /tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/elf/bad-size.s:6: Error: operation combines symbols in different seg
> ments
> /tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/elf/bad-size.s: Assembler messages:
> /tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/elf/bad-size.s:6: Error: operation combines symbols in different seg
> ments
> regexp_diff match failure
> regexp "^.*bad-size\.s:6: Error:.*`_test_nop'.*$"
> line "/tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/elf/bad-size.s:6: Error: operation combines symbols in different segments"
> FAIL: Check bad size directive
>
I can change it to skip cris.
--
H.J.
More information about the Binutils
mailing list