summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF/remove-section.test
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-10-20 14:47:17 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-10-20 14:47:17 +0000
commit2779987d0e2985a9618bd87b5f6532722645a5f2 (patch)
treef87c607c6feb2afaee621a46e01463a06eaada72 /llvm/test/tools/llvm-objcopy/ELF/remove-section.test
parentc4107383e509b459943ca4c529e90d25a2f6bdaa (diff)
downloadbcm5719-llvm-2779987d0e2985a9618bd87b5f6532722645a5f2.tar.gz
bcm5719-llvm-2779987d0e2985a9618bd87b5f6532722645a5f2.zip
[yaml2obj][obj2yaml] - Do not create a symbol table by default.
This patch tries to resolve problems faced in D68943 and uses some of the code written by Konrad Wilhelm Kleine in that patch. Previously, yaml2obj tool always created a .symtab section. This patch changes that. With it we only create it when have a "Symbols:" tag in the YAML document or when we need to create it because it is used by another section(s). obj2yaml follows the new behavior and does not print "Symbols:" anymore when there is no symbol table. Differential revision: https://reviews.llvm.org/D69041 llvm-svn: 375361
Diffstat (limited to 'llvm/test/tools/llvm-objcopy/ELF/remove-section.test')
-rw-r--r--llvm/test/tools/llvm-objcopy/ELF/remove-section.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objcopy/ELF/remove-section.test b/llvm/test/tools/llvm-objcopy/ELF/remove-section.test
index 8f8b98e90f0..927485a6002 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/remove-section.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/remove-section.test
@@ -30,6 +30,7 @@ Sections:
- Name: .test3
Type: SHT_PROGBITS
Flags: [ ]
+Symbols: []
# CHECK: SectionHeaderCount: 6
OpenPOWER on IntegriCloud