gc: support code and cross-references