[RFC v0 0/6] ASCII Command for output section

binutils@emagii.com binutils@emagii.com
Wed Feb 15 11:40:46 GMT 2023


This is a preliminary patchset for implementing the ASCII command

I would like to support

   ASCII <size> , <string>

when I try, and add
   
   ASCII  32 , "mystring"

I get a "syntax error", and would like to understand why.

If I do:
   ASCII (<size>) <string>
I do not get a syntax error when I do

   ASCII (32) "mystring"

I cannot understand why there is a problem...

The testsuite in the ld/testsuite/ld-scripts contain
the 'header.inc' which is included in the ascii.t.
The ascii.t contains an error in that a fixed
size string is specified, but the argument string does not fit.

[PATCH v0 1/6] Add testsuite for ASCII command
[PATCH v0 2/6] Add ASCII command info to NEWS
[PATCH v0 3/6] Add ASCII to info file
[PATCH v0 4/6] ldlex.l: add ASCII
[PATCH v0 5/6] ldgram.y: add ASCII
[PATCH v0 6/6] ldlang.*: parse ASCII command



More information about the Binutils mailing list