PR24411, Division is not accepted in MEMORY length expression
authorAlan Modra <amodra@gmail.com>
Wed, 3 Apr 2019 00:51:36 +0000 (11:21 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 3 Apr 2019 02:31:49 +0000 (13:01 +1030)
commit1c6aafe894645ca1da5c0dd0661bca19caf37ad0
treef1a60055e68ffa23a1f51cfa90a0df900296b180
parent092da96ac4fc1bfa4c794320f538edb4e8d4fcfd
PR24411, Division is not accepted in MEMORY length expression

Let's hope no one has section names starting with '/' in scripts.  If
they do, this change to fix parsing of '/' in expressiongs will break
their project.

PR 24411
ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
(<EXPRESSION>"/DISCARD/"): New.
ld/ChangeLog
ld/ldlex.l