Skip to content

Commit f083272

Browse files
committed
add test without --start-lib/--end-lib
Created using spr 1.3.6-beta.1
1 parent c73eb21 commit f083272

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lld/test/ELF/lto/arm-rtlibcall.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
PIE-ERROR: ld.lld: error: relocation R_ARM_CALL cannot refer to absolute symbol: __divmoddi4
3737
PIE-ERROR-NEXT: >>> defined in divmoddi4.bc
3838
PIE-ERROR-NEXT: >>> referenced by aeabi_ldivmod.o:(__aeabi_ldivmod)
39+
;; Removing --start-lib/--end-lib also ensures that the reference is retained
40+
; RUN: ld.lld main-implicit-ldivmod.bc aeabi_ldivmod.o divmoddi4.bc -o test.exe -Bstatic
41+
; RUN: llvm-objdump -d -r -t test.exe | FileCheck %s --check-prefix=GOOD-DUMP
3942

4043
;; Interestingly, just declaring __aeabi_ldivmod is sufficient to not run into this issue.
4144
; RUN: llvm-as main-declared.ll -o main-declared-ldivmod.bc

0 commit comments

Comments
 (0)