ObjFW  Check-in [171615d20a]

Overview
Comment:Add missing endbr / bti
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 171615d20a82b727472350dfd412141d6930417acca0c2469839fb9d7154f119
User & Date: js on 2024-04-17 20:50:46
Other Links: manifest | tags
Context
2024-04-17
21:02
Fix build for Wii check-in: 32054a4a13 user: js tags: trunk
20:50
Add missing endbr / bti check-in: 171615d20a user: js tags: trunk
20:45
forwarding: Don't grow the stack twice on ARM64 check-in: 8e95cb1c77 user: js tags: trunk
Changes

Modified src/runtime/lookup-asm/lookup-asm-amd64-elf.S from [033d996c97] to [cc9692563a].

100
101
102
103
104
105
106


107
108
109
110
111
112
GENERATE_LOOKUP_SUPER objc_msg_lookup_super_stret objc_msg_lookup_stret

.LreturnNilMethod:
	leaq	.LnilMethod(%rip), %rax
	ret

.LnilMethod:


	xorq	%rax, %rax
	ret

#if defined(OF_LINUX) || defined(OF_HAIKU) || defined(OF_HURD)
.section .note.GNU-stack, "", %progbits
#endif







>
>






100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
GENERATE_LOOKUP_SUPER objc_msg_lookup_super_stret objc_msg_lookup_stret

.LreturnNilMethod:
	leaq	.LnilMethod(%rip), %rax
	ret

.LnilMethod:
	_CET_ENDBR

	xorq	%rax, %rax
	ret

#if defined(OF_LINUX) || defined(OF_HAIKU) || defined(OF_HURD)
.section .note.GNU-stack, "", %progbits
#endif

Modified src/runtime/lookup-asm/lookup-asm-amd64-macho.S from [51edf39f7d] to [c59284e5c0].

94
95
96
97
98
99
100


101
102
GENERATE_LOOKUP_SUPER _objc_msg_lookup_super_stret, _objc_msg_lookup_stret

LreturnNilMethod:
	leaq	LnilMethod(%rip), %rax
	ret

LnilMethod:


	xorq	%rax, %rax
	ret







>
>


94
95
96
97
98
99
100
101
102
103
104
GENERATE_LOOKUP_SUPER _objc_msg_lookup_super_stret, _objc_msg_lookup_stret

LreturnNilMethod:
	leaq	LnilMethod(%rip), %rax
	ret

LnilMethod:
	_CET_ENDBR

	xorq	%rax, %rax
	ret

Modified src/runtime/lookup-asm/lookup-asm-amd64-win64.S from [c8a0addc63] to [09a5df3763].

109
110
111
112
113
114
115


116
117
GENERATE_LOOKUP_SUPER objc_msg_lookup_super_stret objc_msg_lookup_stret

.LreturnNilMethod:
	leaq	.LnilMethod(%rip), %rax
	ret

.LnilMethod:


	xorq	%rax, %rax
	ret







>
>


109
110
111
112
113
114
115
116
117
118
119
GENERATE_LOOKUP_SUPER objc_msg_lookup_super_stret objc_msg_lookup_stret

.LreturnNilMethod:
	leaq	.LnilMethod(%rip), %rax
	ret

.LnilMethod:
	_CET_ENDBR

	xorq	%rax, %rax
	ret

Modified src/runtime/lookup-asm/lookup-asm-arm64-elf.S from [6c01c36fd9] to [8493d6b132].

97
98
99
100
101
102
103




104
105
106
107
108
109
GENERATE_LOOKUP_SUPER objc_msg_lookup_super_stret objc_msg_lookup_stret

.LreturnNilMethod:
	adr	x0, .LnilMethod
	ret

.LnilMethod:




	mov	x0, #0
	ret

#if defined(OF_LINUX) || defined(OF_HAIKU) || defined(OF_HURD)
.section .note.GNU-stack, "", %progbits
#endif







>
>
>
>






97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
GENERATE_LOOKUP_SUPER objc_msg_lookup_super_stret objc_msg_lookup_stret

.LreturnNilMethod:
	adr	x0, .LnilMethod
	ret

.LnilMethod:
#ifdef HAVE_BTI
	bti	c
#endif

	mov	x0, #0
	ret

#if defined(OF_LINUX) || defined(OF_HAIKU) || defined(OF_HURD)
.section .note.GNU-stack, "", %progbits
#endif

Modified src/runtime/lookup-asm/lookup-asm-x86-elf.S from [e9fa2b2c4a] to [51eaca73d3].

113
114
115
116
117
118
119


120
121
122
123
124
125
126
.LreturnNilMethod:
	call	.LgetEIP
	addl	$_GLOBAL_OFFSET_TABLE_, %eax
	leal	.LnilMethod@GOTOFF(%eax), %eax
	ret

.LnilMethod:


	xorl	%eax, %eax
	ret

.LgetEIP:
	movl	(%esp), %eax
	ret








>
>







113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
.LreturnNilMethod:
	call	.LgetEIP
	addl	$_GLOBAL_OFFSET_TABLE_, %eax
	leal	.LnilMethod@GOTOFF(%eax), %eax
	ret

.LnilMethod:
	_CET_ENDBR

	xorl	%eax, %eax
	ret

.LgetEIP:
	movl	(%esp), %eax
	ret

Modified src/runtime/lookup-asm/lookup-asm-x86-win32.S from [5c8f780d66] to [60ea15786d].

102
103
104
105
106
107
108


109
110
GENERATE_LOOKUP_SUPER _objc_msg_lookup_super_stret _objc_msg_lookup_stret

.LreturnNilMethod:
	movl	$.LnilMethod, %eax
	ret

.LnilMethod:


	xorl	%eax, %eax
	ret







>
>


102
103
104
105
106
107
108
109
110
111
112
GENERATE_LOOKUP_SUPER _objc_msg_lookup_super_stret _objc_msg_lookup_stret

.LreturnNilMethod:
	movl	$.LnilMethod, %eax
	ret

.LnilMethod:
	_CET_ENDBR

	xorl	%eax, %eax
	ret