[fpc-pascal] x86-linux-gnu cross

Jonas Maebe jonas at freepascal.org
Sat Sep 5 15:09:27 CEST 2020


On 01/09/2020 20:28, Adriaan van Os via fpc-pascal wrote:
> Linking with other shared libs (maybe dependent on libgcc_so?) also
> causes a segmentation fault on start. All the libs are from
> <https://packages.debian.org/>.

Are you using the -XR command line parameter to specify the Linux
sysroot? If so, that is correct, but we still have these hardcoded Linux
linker scripts in the compiler that are only used when a sysroot is
specified. Maybe one of those is out-of-date...

Or, if you are not using -XR, maybe you are running into a bug that
caused the addition of those hardcoded linkerscripts to the compiler in
the first place (I think in some cases the linker would use a wrong
linker script when cross-compiling, at least in the past).


Jonas


More information about the fpc-pascal mailing list