Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 344031 | Differences between
and this patch

Collapse All | Expand All

(-)a/strings/strings-x86.s (-1 / +2 lines)
Lines 248-253 Link Here
248
	.type strstr,@function
248
	.type strstr,@function
249
249
250
strstr:	
250
strstr:	
251
strstr_begin:				#PIC doesn't seems to work well otherwise
251
	pushl	%edi
252
	pushl	%edi
252
	pushl	%esi
253
	pushl	%esi
253
	movl	12(%esp),%esi		#  str
254
	movl	12(%esp),%esi		#  str
Lines 293-299 Link Here
293
	movl	%esp,%ebp
294
	movl	%esp,%ebp
294
	pushl	12(%ebp)		#  search
295
	pushl	12(%ebp)		#  search
295
	pushl	8(%ebp)			#  str
296
	pushl	8(%ebp)			#  str
296
	call	strstr
297
	call    strstr_begin		# This should make the call relative fixing PIC issues
297
	add	$8,%esp
298
	add	$8,%esp
298
	or	%eax,%eax
299
	or	%eax,%eax
299
	jz	si_99			#  Not found, return NULL
300
	jz	si_99			#  Not found, return NULL

Return to bug 344031