[PATCH] ld: Don't allow '~' as the first char in symbol name

Nick Clifton nickc@redhat.com
Mon Oct 9 11:00:00 GMT 2017


Hi H.J.

> Don't allow '~' as the first character in symbol name in linker script.
> 
> OK for master?
> 
> H.J.
> ---
> 	PR ld/22267
> 	* ldlex.l (SYMBOLNAMECHAR1) New.
> 	(DEFSYMEXP): Replace FILENAMECHAR1 with SYMBOLNAMECHAR1.
> 	(EXPRESSION): Likewise.
> 	* testsuite/ld-scripts/expr.exp: Run pr22267.
> 	* testsuite/ld-scripts/pr22267.d: New file.
> 	* testsuite/ld-scripts/pr22267.s: Likewise.
> 	* testsuite/ld-scripts/pr22267.t: Likewise.
 
Approved - please apply.

Cheers
  Nick



More information about the Binutils mailing list