Files
clang-p2996/lld/test/elf/X86_64/sectionmap.test
Shankar Easwaran a17e5bc02a [lld][ELF] Support non alloc sections in the Writer.
This also makes it support debugging executables built with lld.

Initial patch done by Bigcheese. This is only a revised patch to
have the functionality in the Writer.

llvm-svn: 191032
2013-09-19 20:07:01 +00:00

23 lines
860 B
Plaintext

# This tests that we are able to merge the section .gcc_except_table,
# .data.rel.local, .data.rel.ro, any other sections that belong to .data
# into appropriate output sections
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/sectionmap.o \
RUN: --noinhibit-exec -o %t
RUN: llvm-readobj -sections %t | FileCheck %s -check-prefix=VERIFYSECTIONHEADERS
VERIFYSECTIONHEADERS: Section {
VERIFYSECTIONHEADERS: Name: .data
VERIFYSECTIONHEADERS: }
VERIFYSECTIONHEADERS: Section {
VERIFYSECTIONHEADERS: Name: .gcc_except_table
VERIFYSECTIONHEADERS: }
VERIFYSECTIONHEADERS: Section {
VERIFYSECTIONHEADERS: Name: .data.rel.local
VERIFYSECTIONHEADERS: }
VERIFYSECTIONHEADERS: Section {
VERIFYSECTIONHEADERS: Name: .data.rel.ro
VERIFYSECTIONHEADERS: }
VERIFYSECTIONHEADERS: Section {
VERIFYSECTIONHEADERS: Name: .bss
VERIFYSECTIONHEADERS: }