[PATCH] x86: Warn .insn instruction with length > 15 bytes

Jan Beulich jbeulich@suse.com
Tue Feb 6 17:05:24 GMT 2024


On 06.02.2024 17:28, H.J. Lu wrote:
> With as_bad, assembler will continue to assemble, just not generate
> an object file.   We ran into this with APX.  Not everyone checks
> assembler warnings closely.  It led to mysterious crashes.   I am
> not against it if someone else implements an assembler option to
> turn this error into a warning.

But it should be the other way around: The compiler could pass an
option to promote the (default) warning to an error. And if you
don#t pay attention to warning for assembly files, you could pass
the same option as well. Without harming anyone else with anything
that has worked before.

Jan


More information about the Binutils mailing list