[yaml2obj][ELF] Allow expressing undefined symbols.
authorSean Silva <silvas@purdue.edu>
Fri, 21 Jun 2013 01:11:48 +0000 (01:11 +0000)
committerSean Silva <silvas@purdue.edu>
Fri, 21 Jun 2013 01:11:48 +0000 (01:11 +0000)
commit326c193e0aa221c7836adfa16a3ec85857d7d8b7
tree37850acc56eaa7426c17c9fc2264c7e3e89b6c49
parent552d7cd31a0f6eb0e1434981196f477ae741a184
[yaml2obj][ELF] Allow expressing undefined symbols.

Previously we unconditionally enforced that section references in
symbols in the YAML had a name that was a section name present in the
object, and linked the references to that section. Now, permit empty
section names (already the default, if the `Section` key is not
provided) to indicate SHN_UNDEF.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184513 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/yaml2obj-elf-symbol-basic.yaml
tools/yaml2obj/yaml2elf.cpp