[PATCH v4 0/6] ASCIZ Command for output section

Ulf Samuelsson binutils@emagii.com
Tue Feb 14 16:07:20 GMT 2023


Thank You.

I will start to try to implement the "ASCII" command as well.

ASCII <length> , <string>

I had some problems with getting syntax errors on this so I think
I will send in a preliminary patchset and see if anyone can spot an 
obvious error.


One question:
    The lang_add_string contains an error message if the string does not 
fit into the allocated area.
    This will never get triggered by the ASCIZ command, since that will 
allocate the size of the string.
    If you specify a size to the ASCII command and then provide a longer 
string it will trigger.

    There are no translations for the string at the moment.

    Will the linker output the English string, or what?

    What is the procedure to get a translation?
    I can provide a Swedish translation at the least.

Best Regards
Ulf Samuelsson

Den 2023-02-14 kl. 11:16, skrev Nick Clifton:
> Hi Ulf,
>
>> Introduce an ASCIZ command for an output section
>> When generating a header for an embedded system
>> there is often a need to add text information.
>
> Thanks for contributing this patch series.  I have applied
> the patches with a few minor tweaks - mostly to the new
> test case so that it did not cause new failures on targets
> which pad code to an alignment greater than 4 bytes.
>
> Cheers
>   Nick
>
>


More information about the Binutils mailing list