[ELF] - Linkerscript: implement DEFINED() command.

Description

[ELF] - Linkerscript: implement DEFINED() command.

DEFINED(symbol)
Return 1 if symbol is in the linker global symbol table and is defined before
the statement using DEFINED in the script, otherwise return 0.

Can be used to define default values for symbols. Found it in the wild.

Differential revision: https://reviews.llvm.org/D24858

Details

Committed
grimarSep 23 2016, 6:17 AM
Differential Revision
D24858: [ELF] - Linkerscript: implement DEFINED() command.
Parents
rL282244: Linker script: fix crash when discarding section
Branches
Unknown
Tags
Unknown