mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
76f361eb49
Don't allow '~' as the first character in symbol name in linker script. 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.
11 lines
106 B
ArmAsm
11 lines
106 B
ArmAsm
.globl main
|
|
.globl start
|
|
.globl _start
|
|
.globl __start
|
|
.text
|
|
main:
|
|
start:
|
|
_start:
|
|
__start:
|
|
.dc.a foo
|