[v4,0/7] ASCII output section command

Message ID 20240708174929.15137-1-binutils@emagii.com
Headers
Series ASCII output section command |

Message

Ulf Samuelsson July 8, 2024, 5:49 p.m. UTC
  Implement the ASCII command for output sections

Introduce a command which adds a fixed size string.

   ASCII <size>  ',' <string>

Size specified in command. 
If the string is shorter than the allocated area, it is zero filled
If the string is longer than the allocated area, it is truncated
and a NUL character is added at the end.

Corrected ld.texi to use new syntax in index
Use hyphen instead of double quote in index, also for ASCIZ
More examples on misformed ASCII commands
Fix off-by-one error in lang_add_string
Fix whitespace error in ldgram.y and testsuite

Note: Will be merged into fewer patches after acceptance in final version

[PATCH v4 1/7] ldlex.l: Add ASCII token
[PATCH v4 2/7] ldgram.y: Add ASCII parsing
[PATCH v4 3/7] ldlang.*: process ASCII command
[PATCH v4 4/7] ld.texi: Add ASCII to info file
[PATCH v4 5/7] Add testsuite for ASCII command
[PATCH v4 6/7] NEWS: Add ASCII command
[PATCH v4 7/7] ChangeLog: Add ASCII command