[PATCH] Fix ARM GAS segment fault

Jie Zhang jie@codesourcery.com
Fri Mar 19 12:52:00 GMT 2010


ARM GAS crashes on the following test case now:

nop
.fill 0, 0, 0
nop

This .fill directive does not generate anything. So the mapping symbol 
"$d" generated for this .fill will have the same value as the "$a" 
generated for the second "nop", which GAS does not allow.

To fix this case, this patch just allows two mapping symbols have the 
same value and let the new one override the old one.

No regression on GAS testsuite. Is it OK?

Regards,
-- 
Jie Zhang
CodeSourcery
(650) 331-3385 x735
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-arm-mapping-symbols-with-same-value.diff
Type: text/x-patch
Size: 2516 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100319/6548684e/attachment.bin>


More information about the Binutils mailing list