[fpc-pascal] MachO $indirect symbols

Adriaan van Os adriaan at adriaan.biz
Mon Mar 11 14:29:54 CET 2024


When compiling for aarch64 with fpc 3.3.1 on macOS 14.2, I notice some new entries in the Mach-O 
symbol table of the produced executable, e.g. apart from

	SegmentName = __DATA_CONST
	SectionName = __const
	SymbolName = _VMT_$SYSTEM_$$_TOBJECT
	n_type = 15

there is now also an entry

	SegmentName = __DATA_CONST
	SectionName = __const
	SymbolName = _VMT_$SYSTEM_$$_TOBJECT$indirect
	n_type = 15

etcetera. I don't know if the new entries are specific for aarch64, for fpc 3.3.1 or for the linker 
and assembler used. Also the segment name seems to have changed from __DATA to __DATA_CONST.

Just wondering what's behind this.

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list