toolchain icon indicating copy to clipboard operation
toolchain copied to clipboard

[gas] gas need to relax ST a, [xxx, 0] into ST a, [xxx]

Open vineetgarc opened this issue 4 years ago • 2 comments

We have some code of form

ST a, [@global, 0]

gas barfs as "Error: inappropriate arguments for opcode 'st' "

It can simply relax the ST instruction and ignore the 0 offset.

vineetgarc avatar May 28 '20 21:05 vineetgarc

It is just an encoding issue, GAS doesn't expect to have a symbol there. Hence, the error.

claziss avatar Feb 04 '21 07:02 claziss

@claziss do we need to do something here?

abrodkin avatar Oct 05 '21 15:10 abrodkin

@claziss ping!

abrodkin avatar Dec 26 '22 12:12 abrodkin

This is a syntactic sugar, if anyone is in desperate need please reopen.

claziss avatar Jan 05 '23 11:01 claziss