t3hn3rd
|
2b071a58c7
|
feature: Upgrade FPC from 2.6.4 to 3.2.2
continuous-integration/drone Build was killed
Migrate the build toolchain from Free Pascal Compiler 2.6.4 to 3.2.2.
FPC 3.2.2 requires a significantly expanded custom system unit and
several syntactic adjustments across the codebase.
Dockerfile:
- Bump FPC_VERSION from 2.6.4 to 3.2.2
compile_sources.sh:
- Replace obsolete -Op3 flag with -OpPENTIUM3
linker.script:
- Add /DISCARD/ section for .init_array, .fini_array, .ctors, .dtors,
.eh_frame, .gcc_except_table, and .note.GNU-stack sections emitted
by FPC 3.2.2
system.pas:
- Fix hresult to 'type longint' (was cardinal, incompatible with 3.2.2)
- Add required types: SizeInt, SizeUInt, PtrInt, PtrUInt, NativeInt,
NativeUInt, CodePointer, TTypeKind, jmp_buf, TExceptAddr, TGuid,
FileRec, TextRec
- Add required globals: ExceptAddrStack, ExitCode, ErrorAddr, ErrorCode,
ExitProc, StackBottom, StackLength, RandSeed
- Implement compilerprocs: fpc_initializeunits, fpc_do_exit,
fpc_handleerror, fpc_rangeerror, fpc_overflow, fpc_divbyzero,
fpc_objecterror, fpc_abstracterror, fpc_stackcheck, fpc_iocheck,
fpc_pushexceptaddr, fpc_popaddrstack, fpc_setjmp (asm),
fpc_longjmp (asm), fpc_shortstr_assign, fpc_mul_int64 (asm),
fpc_getmem, fpc_freemem, fpc_reraise, fpc_raiseexception,
fpc_catches, fpc_doneexception
- Add move() procedure with FPC_MOVE alias
util.pas, serial.pas:
- Fix inline asm functions (getESP, inl, inw, inb, sinb) to use temp
variables instead of function-name result — FPC 3.2.2 no longer
allows 'MOV funcname, reg' syntax in inline asm blocks
lmemorymanager.pas:
- Export kalloc/kfree with public aliases (kernel_kalloc, kernel_kfree)
so system.pas fpc_getmem/fpc_freemem can link to them
|
2026-02-26 00:01:40 +00:00 |
|