29 lines · plain
1# REQUIRES: arm2# RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=armv7a-linux-gnueabihf %S/Inputs/arm-thunk-many-passes.s -o %t.o3# RUN: ld.lld %t.o -T %s -o %t4# RUN: llvm-nm %t | FileCheck %s5 6## arm-thunk-many-passes.s is worst case case of thunk generation that takes 97## passes to converge. It takes a few more passes to make symbol assignment8## converge. Test that9## 1. we don't error that "address assignment did not converge".10## 2. we check convergence of symbols defined in an output section descriptor.11 12# CHECK: 01011050 T a13# CHECK: 0101104f T b14# CHECK: 0101104e T c15# CHECK: 0101104d T d16# CHECK: 0101104c T e17 18SECTIONS {19 . = SIZEOF_HEADERS;20 .text 0x00011000 : {21 a = b + 1;22 b = c + 1;23 c = d + 1;24 d = e + 1;25 *(.text*);26 }27 e = .;28}29