[PATCH PR gas/33030 v2] gas: accept leading zeros on dollar local labels in z80 sdcc compat mode
Jan Beulich
jbeulich@suse.com
Mon Jul 7 06:13:06 GMT 2025
On 06.07.2025 23:48, Aaron Griffith wrote:
> SDCC assembly output uses 5-digit numeric dollar sign labels, padded
> with zeros. Commit 226749d made these invalid, and broke the Z80 SDCC
> compatibility mode in GAS.
>
> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=226749d5a6ff0d5c607d6428d6c81e1e7e7a994b
>
> This restores SDCC compatibility by replacing the leading zeros with
> spaces when inside dollar local labels and when SDCC compatibility is
> enabled. It also restores the SDCC test case to represent actual
> syntax emitted by SDCC, and adds a note explaining the purpose of
> the test.
>
> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33030
Okay. I can't find any earlier commit of yours, which may indicate the
patch wants committing on your behalf?
As to the bugzilla reference above: I'm not sure this is one of the forms
that will be recognized when the patch goes in, for the bugzilla entry to
be auto-updated. Don't know how to easily look at that checking logic ...
We'll just see what happens.
Jan
More information about the Binutils
mailing list