<<< VAXAXP::NOTES$:[NOTES$LIBRARY]VMSNOTES.NOTE;1 >>> -< VAX and Alpha VMS - Digital Internal Use Only >- ================================================================================ Note 1430.1 Ordering of psects - how? 1 of 3 GIDDAY::GILLINGS "a crucible of informative mistake" 32 lines 28-AUG-1996 01:15 -< use COLLECT >- -------------------------------------------------------------------------------- chg, >What I would like to do is force two psects into > sequential order. From the OpenVMS Linker Utility Manual "3.3.2 Combining Program Sections into Image Sections The linker creates image sections by grouping together pro- gram sections with similar attributes. Within an image section, the linker organizes program sections alphabetically by name. If more than one object module contributes to the same program section, the linker lays out their contributions in the order it processes them." You can override this to some extent by using the COLLECT option. For example, an options file containing the lines: COLLECT=C_CLUSTER,C COLLECT=B_CLUSTER,B COLLECT=A_CLUSTER,A will guarantee that PSECTs C will be allocated a lower address than B which will be lower than A. What it will NOT do is guarantee that they are physically contiguous. In this case, each PSECT will be page aligned. You can force the collection of several PSECTs into a single cluster, for example: COLLECT=FORCE,A,B,C however, the PSECTs will be ordered alphabetically by name, regardless of the order they were named in the COLLECT option.