- Backport r46209 - "@PLT is needed for calls to link it properly with pic code" [bsc#1176706]. OBS-URL: https://build.opensuse.org/request/show/835881 OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/fpc?expand=0&rev=71
23 lines
661 B
Diff
23 lines
661 B
Diff
Index: fpcsrc/rtl/linux/x86_64/si_c.inc
|
|
===================================================================
|
|
--- fpcsrc/rtl/linux/x86_64/si_c.inc (revision 46208)
|
|
+++ fpcsrc/rtl/linux/x86_64/si_c.inc (revision 46209)
|
|
@@ -86,7 +86,7 @@
|
|
|
|
{ start the program }
|
|
xorq %rbp,%rbp
|
|
- call PASCALMAIN
|
|
+ call PASCALMAIN@PLT
|
|
{$endif FPC_HAS_INDIRECT_ENTRY_INFORMATION}
|
|
hlt
|
|
end;
|
|
@@ -162,7 +162,7 @@
|
|
|
|
{ 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;
|