29.1.15 __builtin_section_size Built-in Function

Remember: This built-in function gets run-time information about section addresses and sizes.

Description

Return the size in bytes of the named quoted section.

Prototype

unsigned long __builtin_section_size(quoted-section-name);

Argument

quoted-section-name The name of the section.

Return Value

The size in bytes of the named section.

Assembler Operator/ Machine Instruction

.sizeof.

Error Messages

An “undefined reference” error message will be displayed if the quoted section name does not exist in the link.