SLAU131V October 2004 – February 2020
...
SECTIONS
{
UNION
{
section1: {} crc_table(table1, algorithm=CRC_CCITT)
section2:
} crc_table(table2, algorithm=CRC32_ISO3309)
}
When the crc_table() operator is applied to a GROUP or a UNION, the linker applies the table specification to the members of the GROUP or UNION.
In Example 28 the linker creates two CRC tables, table1 and table2. table1 contains one entry for section1, using algorithm CRC_CCITT. Because both sections are members of the UNION, table2 contains entries for section1 and section2, using algorithm CRC32_ISO3309. The order of the entries in table2 is unspecified.