2013-06-17 10:29:36 +08:00
|
|
|
# This tests that we are able to merge the section .gcc_except_table,
|
2014-01-27 11:09:26 +08:00
|
|
|
# .data.rel.local, .data.rel.ro, any other sections that belong to .data
|
2013-06-17 10:29:36 +08:00
|
|
|
# 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 {
|
2013-09-20 04:07:01 +08:00
|
|
|
VERIFYSECTIONHEADERS: Name: .data
|
2013-06-17 10:29:36 +08:00
|
|
|
VERIFYSECTIONHEADERS: }
|
|
|
|
VERIFYSECTIONHEADERS: Section {
|
2013-09-20 04:07:01 +08:00
|
|
|
VERIFYSECTIONHEADERS: Name: .gcc_except_table
|
2013-06-17 10:29:36 +08:00
|
|
|
VERIFYSECTIONHEADERS: }
|
|
|
|
VERIFYSECTIONHEADERS: Section {
|
2013-09-20 04:07:01 +08:00
|
|
|
VERIFYSECTIONHEADERS: Name: .data.rel.local
|
2013-06-17 10:29:36 +08:00
|
|
|
VERIFYSECTIONHEADERS: }
|
|
|
|
VERIFYSECTIONHEADERS: Section {
|
2013-09-20 04:07:01 +08:00
|
|
|
VERIFYSECTIONHEADERS: Name: .data.rel.ro
|
2013-06-17 10:29:36 +08:00
|
|
|
VERIFYSECTIONHEADERS: }
|
|
|
|
VERIFYSECTIONHEADERS: Section {
|
2013-09-20 04:07:01 +08:00
|
|
|
VERIFYSECTIONHEADERS: Name: .bss
|
2013-06-17 10:29:36 +08:00
|
|
|
VERIFYSECTIONHEADERS: }
|