aboutsummaryrefslogtreecommitdiff
path: root/test/elf/X86_64/sectionmap.test
blob: a38f23e32b95ccb38a9ee5d4d64d17e274315374 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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:  }