diff options
author | Marina Yatsina <marina.yatsina@intel.com> | 2016-03-22 11:23:15 +0000 |
---|---|---|
committer | Marina Yatsina <marina.yatsina@intel.com> | 2016-03-22 11:23:15 +0000 |
commit | 33ef7dad18c9fc3d5cc3c9ee3f3528e825f10e24 (patch) | |
tree | b7b1bc1154b33ad21aab345a8ab85ca62e21c9b6 /llvm/test | |
parent | 976921d4b4911394fe0e88b047a01dad5e85c701 (diff) | |
download | bcm5719-llvm-33ef7dad18c9fc3d5cc3c9ee3f3528e825f10e24.tar.gz bcm5719-llvm-33ef7dad18c9fc3d5cc3c9ee3f3528e825f10e24.zip |
[ELF][gcc compatibility]: support section names with special characters (e.g. "/")
Adding support for section names with special characters in them (e.g. "/").
GCC successfully compiles such section names.
This also fixes PR24520.
Differential Revision: http://reviews.llvm.org/D15678
llvm-svn: 264038
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/MC/ELF/section.s | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/section.s b/llvm/test/MC/ELF/section.s index 008c4605552..0277be52236 100644 --- a/llvm/test/MC/ELF/section.s +++ b/llvm/test/MC/ELF/section.s @@ -6,11 +6,15 @@ .section .note.GNU-stack2,"",%progbits .section .note.GNU-,"",@progbits .section -.note.GNU,"","progbits" +.section src/stack.c,"",@progbits +.section ~!@$%^&*()_-+={[}]|\\:<>,"",@progbits // CHECK: Name: .note.GNU-stack // CHECK: Name: .note.GNU-stack2 // CHECK: Name: .note.GNU- // CHECK: Name: -.note.GNU +// CHECK: Name: src/stack.c +// CHECK: Name: ~!@$%^&*()_-+={[}]|\\:<> // Test that the defaults are used |