projects
/
fpc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
443cb81
)
@PLT is needed for calls to link it properly with pic code
author
Florian Klämpfl
<florian@freepascal.org>
Mon, 3 Aug 2020 19:42:14 +0000
(19:42 +0000)
committer
Abou Al Montacir
<abou.almontacir@sfr.fr>
Fri, 5 Jan 2024 07:40:08 +0000
(08:40 +0100)
Gbp-Pq: Name Fix-liking-with-libc-when-PIC-is-enabled.patch
fpcsrc/rtl/linux/x86_64/si_c.inc
patch
|
blob
|
history
diff --git
a/fpcsrc/rtl/linux/x86_64/si_c.inc
b/fpcsrc/rtl/linux/x86_64/si_c.inc
index bd375c6611c16b6aecf4956937c9317411c2652e..71fbdfd28cfe2f6d45b473a9686bf97bb1face1b 100644
(file)
--- a/
fpcsrc/rtl/linux/x86_64/si_c.inc
+++ b/
fpcsrc/rtl/linux/x86_64/si_c.inc
@@
-86,7
+86,7
@@
procedure main_stub; assembler; nostackframe;
{ start the program }
xorq %rbp,%rbp
- call PASCALMAIN
+ call PASCALMAIN
@PLT
{$endif FPC_HAS_INDIRECT_ENTRY_INFORMATION}
hlt
end;
@@
-162,7
+162,7
@@
procedure _FPC_libc_start; assembler; nostackframe; public name '_start';
{ Call the user's main function, and exit with its value.
But let the libc call main. }
- call libc_start_main
+ call libc_start_main
@PLT
hlt { Crash if somehow `exit' does return. }
end;