[PATCH] gas: Fix checking for backwards .org with negative offset
Alan Modra
amodra@gmail.com
Sun May 31 22:52:03 GMT 2020
On Fri, May 29, 2020 at 04:04:50PM +0100, Alex Coplan wrote:
> * testsuite/gas/aarch64/org-neg.d: New test.
> * testsuite/gas/aarch64/org-neg.l: Error output for test.
> * testsuite/gas/aarch64/org-neg.s: Input for test.
> * testsuite/gas/arm/org-neg.d: New test.
> * testsuite/gas/arm/org-neg.l: Error output for test.
> * testsuite/gas/arm/org-neg.s: Input for test.
> * write.c (relax_segment): Fix handling of negative offset when
> relaxing an rs_org frag.
This is OK everywhere with the formatting fixed.
> - if (address + fragP->fr_fix > target)
> + if ((offsetT)(address + fragP->fr_fix) > target)
if ((offsetT) (address + fragP->fr_fix) > target)
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list