brintos

brintos / llvm-project-archived public Read only

0
0
Text · 901 B · 0c82943 Raw
33 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/x86-64-split-stack-main.s -o %t2.o4 5# RUN: ld.lld --defsym __morestack=0x100 --defsym __morestack_non_split=0x200 %t1.o %t2.o -o %t6# RUN: llvm-objdump -d %t 2>&1 | FileCheck %s7 8# An unknown prologue ordinarily gives a match failure, except that this9# object file includes a .note.GNU-no-split-stack section, which tells the10# linker to expect such prologues, and therefore not error.11 12# CHECK: __morestack13 14	.text15 16	.global	unknown_prologue17	.type	unknown_prologue,@function18unknown_prologue:19	push %rbp20	mov %rsp,%rbp21	cmp %fs:0x70,%rsp22	jae 1f23	callq __morestack24	retq251:26	callq non_split27	leaveq28	retq29 30	.size unknown_prologue,. - unknown_prologue31	.section .note.GNU-split-stack,"",@progbits32	.section .note.GNU-no-split-stack,"",@progbits33