ld --defsym
authorAlan Modra <amodra@gmail.com>
Fri, 29 Jan 2021 22:35:50 +0000 (09:05 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 1 Feb 2021 14:57:12 +0000 (01:27 +1030)
commitfb6c220ebdae893d7d955827363010342fa1afa5
tree72f615ae32e85635b5a6082e5839d155605b48b3
parent40726f16a8d7105761e36398054860a923d4efc9
ld --defsym

This makes --defsym support the same expressions as assignment in a
script.  For example, --defsym 'HIDDEN(foo=0)', will define a hidden
visibility foo.

* ldgram.y (defsym_expr): Use assignment rule.
* ldlex.h (ldlex_defsym): Delete.
* ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
ld/ChangeLog
ld/ldgram.y
ld/ldlex.h
ld/ldlex.l