[PATCH v1 4/7] ld.texi: Add ASCII to info file
Andreas Schwab
schwab@suse.de
Mon Jul 8 12:16:15 GMT 2024
On Jul 08 2024, Ulf Samuelsson wrote:
> ASCII 4, "foob" gives you a 4 byte area which is not a zero-terminated
> string.
> If you intended it to be a zero-terminated string, there is an uncatched
> bug.
>
> ASCII 4, "foobar" gives you a 4 byte area which is different from your
> intention and a warning message.
> It also tries to minimizes the damage of your mistake.
This incosistency makes it a questionable feature. The second example
should really be rejected at all.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
More information about the Binutils
mailing list