SuperH literal pools in gas

Joseph Matthews jmatt50@outlook.com
Thu Apr 9 01:46:25 GMT 2026


Hi all,

I'm looking to move something using Renesas' SuperH assembler to gas, however
it doesn't seem as if there's an equivalent to its literal pool functionality.

Currently, I'm able to write something like "mov.l #imm, rn", which would be
expanded to "mov.l @(disp, pc), rn" with a literal pool being placed after an
unconditional branch or where a ".pool" directive has been placed, but it
doesn't appear gas has this for SuperH.

(sp is also not an alias to r15, but that can be worked around.)

It appears ARM and other ISAs have this though, through writing something like
"ldr reg, =imm" and using the ".ltorg" directive (or ".pool" synonym).

Would there be any interest in implementing this for SuperH?

Thanks,
Joseph Matthews


More information about the Binutils mailing list