mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 18:29:27 +02:00
* some PIC fixes in OpenBSD x86_64 cprt0.as
* use the correct section type for .eh_frame git-svn-id: trunk@41669 -
This commit is contained in:
parent
ac86980f8a
commit
b05b43fe35
@ -76,7 +76,8 @@ ___start:
|
||||
addq $1, %rax
|
||||
movq %rax, __progname(%rip)
|
||||
.L6:
|
||||
movq $__progname_storage, -16(%rbp)
|
||||
leaq __progname_storage(%rip), %rax
|
||||
movq %rax, -16(%rbp)
|
||||
jmp .L7
|
||||
.L8:
|
||||
movq __progname(%rip), %rcx
|
||||
@ -91,13 +92,14 @@ ___start:
|
||||
movzbl (%rax), %eax
|
||||
testb %al, %al
|
||||
je .L9
|
||||
movq $__progname_storage+255, %rax
|
||||
leaq __progname_storage+255(%rip), %rax
|
||||
cmpq %rax, -16(%rbp)
|
||||
jb .L8
|
||||
.L9:
|
||||
leaq __progname_storage(%rip), %rax
|
||||
movq %rax, __progname(%rip)
|
||||
movq -16(%rbp), %rax
|
||||
movb $0, (%rax)
|
||||
movq $__progname_storage, __progname(%rip)
|
||||
.L2:
|
||||
movl $_mcleanup, %edi
|
||||
call atexit
|
||||
@ -184,7 +186,7 @@ _strrchr:
|
||||
.comm operatingsystem_parameter_envp,8,8
|
||||
.comm operatingsystem_parameter_argc,8,8
|
||||
.comm operatingsystem_parameter_argv,8,8
|
||||
.section .eh_frame,"a",@progbits
|
||||
.section .eh_frame,"a",@unwind
|
||||
.Lframe1:
|
||||
.long .LECIE1-.LSCIE1
|
||||
.LSCIE1:
|
||||
@ -207,7 +209,7 @@ _strrchr:
|
||||
.long .LEFDE1-.LASFDE1
|
||||
.LASFDE1:
|
||||
.long .LASFDE1-.Lframe1
|
||||
.long .LFB9
|
||||
.long .LFB9-.
|
||||
.long .LFE9-.LFB9
|
||||
.uleb128 0x0
|
||||
.byte 0x4
|
||||
@ -226,7 +228,7 @@ _strrchr:
|
||||
.long .LEFDE3-.LASFDE3
|
||||
.LASFDE3:
|
||||
.long .LASFDE3-.Lframe1
|
||||
.long .LFB10
|
||||
.long .LFB10-.
|
||||
.long .LFE10-.LFB10
|
||||
.uleb128 0x0
|
||||
.byte 0x4
|
||||
|
Loading…
Reference in New Issue
Block a user