4 /* BLOCK: on Windows (PE) output section must be page-aligned. Use 4-byte alignment otherwise */
5 /* SUBALIGN: force 4-byte alignment of input sections for pg_registry.
6 Gcc defaults to 32 bytes; padding is then inserted between object files, breaking the init structure. */
7 .pg_registry BLOCK( DEFINED(__section_alignment__) ? __section_alignment__ : 4 ) : SUBALIGN(4)
9 PROVIDE_HIDDEN (__pg_registry_start = . );
10 PROVIDE_HIDDEN (___pg_registry_start = . );
11 KEEP (*(.pg_registry))
12 KEEP (*(SORT(.pg_registry.*)))
13 PROVIDE_HIDDEN (__pg_registry_end = . );
14 PROVIDE_HIDDEN (___pg_registry_end = . );
16 PROVIDE_HIDDEN (__pg_resetdata_start = . );
17 PROVIDE_HIDDEN (___pg_resetdata_start = . );
18 KEEP (*(.pg_resetdata))
19 PROVIDE_HIDDEN (__pg_resetdata_end = . );
20 PROVIDE_HIDDEN (___pg_resetdata_end = . );