Please look at:
https://www.freepascal.org/testsuite/cgi-bin/new-testsuite2.cgi?action=4&testfileid=5630
.rdata support, i.e. read-only data sections,
is not supported in several CPU-OS combination,
and IIRC, it is even worse for PIC code,
but I don't really know if these special limitations should not be removed...
See TGNUAssembler.sectionname method in compiler/aggas.pas unit, and difference between secnames and secnames_pic inside that method.
Pierre
Le 12/05/2021 à 20:13, J. Gareth Moreton via fpc-devel a écrit :
Show quoted text 13 lines
Hi everyone,
So I stumbled across this during my optimisation development:
Under x86_64-win64 (I'm not sure about other platforms), the test
"test/tarray15.pp" fails with exitcode 19 if you run the test suite with
TEST_OPT=-a to create assembly dumps. The failure is because the code
attempts to write to a constant but doesn't raise an exception while
doing so. Can anyone else confirm this?
Gareth aka. Kit