49 lines · plain
1// REQUIRES: arm2/// Link against a DSO to ensure that sections are not discarded by --gc-sections.3// RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux %S/Inputs/shared.s -o %ts.o4// RUN: ld.lld -shared -soname=ts %ts.o -o %ts.so5// RUN: llvm-mc %s -o %t.o -filetype=obj --triple=armv7-unknown-linux -arm-add-build-attributes6// RUN: ld.lld %t.o %ts.so -o %t --export-dynamic --gc-sections7// RUN: llvm-nm %t | FileCheck %s8 9// CHECK: __Thumbv7ABSLongThunk__start10// CHECK: __Thumbv7ABSLongThunk__start11 12// CHECK: __Thumbv7ABSLongThunk_foo13// CHECK-NOT: __Thumbv7ABSLongThunk_foo14 15.thumb16 17.section .llvm_sympart.g1,"",%llvm_sympart18.asciz "part1"19.4byte f120 21.section .llvm_sympart.g2,"",%llvm_sympart22.asciz "part2"23.4byte f224 25.section .text._start,"ax",%progbits26.globl _start27_start:28bx lr29foo:30b f031.zero 17*104857632 33.section .text.f0,"ax",%progbits34.globl f035f0:36b foo37 38.section .text.f1,"aw",%progbits39.globl f140f1:41b _start42b foo43 44.section .text.f2,"ax",%progbits45.globl f246f2:47b _start48b foo49