[PATCH v1 4/7] ld.texi: Add ASCII to info file
Ulf Samuelsson
binutils@emagii.com
Mon Jul 8 12:22:02 GMT 2024
Den 2024-07-08 kl. 14:16, skrev Andreas Schwab:
> 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.
>
Since the issue is normally harmless, I believe that exiting the linker
with an error message is too harsh.
If you feel the use of "ASCII", makes it confusing, feel free to suggest
a better name.
I'd rather keep the functionality than the name.
--
Best Regards
Ulf Samuelsson
More information about the Binutils
mailing list