* scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.
authorIan Lance Taylor <ian@airs.com>
Fri, 22 Jul 1994 20:55:45 +0000 (20:55 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 22 Jul 1994 20:55:45 +0000 (20:55 +0000)
commit31ddb15694f91cf0277586a49656714d40c4b53f
tree90aaa90ac3d8a35948cb692b386897c877d18904
parent7c6da9cade1c47d725fac11ddc9aaf921f85c22d
* scripttempl/elf.sc: Use PROVIDE to define etext, edata, and end.

Add a new script operator, PROVIDE, to define a symbol only if it
is needed.
* ldgram.y (PROVIDE): New token.
(assignment): Accept PROVIDE.
* ldlex.l (PROVIDE): New token.
* ldexp.h (node_type): Add etree_provide to node_class enum.
(exp_provide): Declare.
* ldexp.c (exp_fold_tree): Handle etree_provide.
(exp_provide): New function.
(exp_print_tree): Handle etree_provide.
* ld.texinfo: Document PROVIDE.
ld/ChangeLog
ld/ldexp.c
ld/ldlex.l
ld/scripttempl/elf.sc