2 # RUN: rm -rf %t; split-file %s %t
3 ## Verify that we preserve alignment when merging sections.
4 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin -o %t/foo.o
5 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin -o %t/bar.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin -o %t/baz.o
7 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin -o %t/qux.o
8 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t/main.o
9 # RUN: %lld -o %t/output %t/foo.o %t/bar.o %t/baz.o %t/qux.o %t/main.o
11 # RUN: llvm-objdump --syms --section=__data --full-contents %t/output | FileCheck %s
12 # CHECK: SYMBOL TABLE:
13 # CHECK-DAG: [[#%x, ADDR:]] g O __DATA,__data _foo
14 # CHECK-DAG: {{0*}}[[#ADDR+0x4]] g O __DATA,__data _bar
15 # CHECK-DAG: {{0*}}[[#ADDR+0x8]] g O __DATA,__data _baz
16 # CHECK-DAG: {{0*}}[[#ADDR+0x9]] g O __DATA,__data _qux
18 # CHECK: Contents of section __DATA,__data:
19 # CHECK-NEXT: {{0*}}[[#ADDR]] ca000000 fe000000 baefbead de000000
50 .section __TEXT,__text