Check that -G0 is consumed and passed to the linker.
On mips and cheri claim and pass down the -G# argument if present when linking.