Forum > Other
FreeBSD 13.1 cprt0.o error
pelle:
Being a bit new both to FreePascal and FreeBSD I am not sure what to do about this.
The message I see (in FreeBSD 13.2) is only a warning, not an error, and it seems as if the generated binary runs properly, at least for very simple test-programs.
But it is annoying to get a warning every time, and it looks like it may turn into an error on future upgrade?
--- Code: ---/usr/local/bin/ld.bfd: warning: /usr/local/lib/fpc/3.2.2/units/x86_64-freebsd/rtl/prt0.o: missing .note.GNU-stack section implies executable stack
/usr/local/bin/ld.bfd: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
--- End code ---
Should this perhaps be reported to someone that is building the official FreeBSD package? Is the only way for now to patch the fpc code and recompile it?
What makes me a bit confused is that it seems like I already have ld.bfd, and that is the linker that should be used, right?
AlexTP:
What you can do: don't use BSD packaged FPC/Lazarus, but get fpcUpDeluxe and install the last git version (or last release version?)
pelle:
--- Quote from: AlexTP on October 24, 2023, 08:37:27 pm ---What you can do: don't use BSD packaged FPC/Lazarus, but get fpcUpDeluxe and install the last git version (or last release version?)
--- End quote ---
OK. Thanks for the suggestion. Unfortunately I tried now with both with the trunk and stable versions, but I get the same linker warning with both (same as for the packaged version).
marcov:
cprt, dllprt and gprt now have non-xecutable stack note in trunk and fixes that silences the warning.
Note that this only came out when you linked dynamically linked binaries.
Navigation
[0] Message Index
[*] Previous page