Repository navigation
ABI common
-
EI_OSABI/EI_ABIVERSIONnever checked:collect-aroswritesELFOSABI_AROSand ABI version 1, but no loader verifies them.
-
Where:
compiler/arossupport/include/libcall.hlines 1180, 1190, 1200, 1210, 1220, 1230. -
What: each passes its fifth argument as
AROS_LCS(a5). NoAROS_LCSmacro is defined anywhere; it should beAROS_LCA(a5). In addition,AROS_LVO_CALL10NR(line 1229) takes parametersa1..a9but its body usesa10. - Effect: any use of these macros fails to compile.
-
Fix: replace
AROS_LCSwithAROS_LCAon all six lines and adda10to theAROS_LVO_CALL10NRparameter list.
-
Where:
rom/dos/internalloadseg_elf.cload_header()(lines 220-224);compiler/include/dos/elf.h;arch/riscv64-sbi/kernel/kernel_elf.c. -
What: the header check covers class, version,
ET_REL, byte order and machine only.e_flagsis never read. The ARM attribute parser checksTag_CPU_archandTag_FP_archbut notTag_ABI_VFP_args.elf.hhas noEF_ARM_*orEF_RISCV_*constants. -
Effect:
arm(soft-float) andarmhfbinaries can be mixed, as can RISC-V binaries built for different float conventions. They load without error and fail at run time. -
Fix: reject mismatches at load time:
Tag_ABI_VFP_args(or `EF_ARM_ABI_F -
Stale comments:
exec/libraries.hrefers toaros/machine.hforLIB_VECTSIZE; the x86_64, PowerPC and othercpu.hfiles carry an "i386 processor" comment copied from the i386 header; the PowerPCFullJumpVeccomment saysliwhere the code emitsori. -
Generated stack-call inlines (
tools/genmodule/writeincinline.c) treat the vector table as an array of pointers, which is wrong for m68k's 6-byte vectors. They are opt-in.