mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 12:29:25 +02:00
* more PIC fixes in the i386 OpenBSD startup code
git-svn-id: trunk@41683 -
This commit is contained in:
parent
9c3d7df289
commit
bfe148cfef
@ -80,16 +80,17 @@ ___start:
|
||||
pushl $47
|
||||
pushl %ebx
|
||||
call _strrchr
|
||||
movl %eax,__progname
|
||||
movl __progname@GOT(%edi),%ecx
|
||||
movl %eax,(%ecx)
|
||||
addl $16,%esp
|
||||
testl %eax,%eax
|
||||
jne .L4
|
||||
movl %ebx,__progname
|
||||
movl %ebx,(%ecx)
|
||||
jmp .L5
|
||||
.p2align 4,,7
|
||||
.L4:
|
||||
incl %eax
|
||||
movl %eax,__progname
|
||||
movl %eax,(%ecx)
|
||||
.L5:
|
||||
movl __progname_storage@GOT(%edi),%edx
|
||||
jmp .L12
|
||||
@ -97,10 +98,12 @@ ___start:
|
||||
.L9:
|
||||
movb (%eax),%al
|
||||
movb %al,(%edx)
|
||||
incl __progname
|
||||
movl __progname@GOT(%edi),%ecx
|
||||
incl (%ecx)
|
||||
incl %edx
|
||||
.L12:
|
||||
movl __progname,%eax
|
||||
movl __progname@GOT(%edi),%ecx
|
||||
movl (%ecx),%eax
|
||||
cmpb $0,(%eax)
|
||||
je .L7
|
||||
movl __progname_storage@GOT(%edi),%ecx
|
||||
|
Loading…
Reference in New Issue
Block a user