4.1.7 Section name

The following table lists the names, section types, and section attributes of these reserved sections.

Table 4.12

Reserved Sections

Section Type

Default Section Name

Description

Alignment Size

Program areas

.text

Executable program

2

Uninitialized data areas

.bss

Sections accessed with r0-relative ld/st (two instructions)

4

.zbss

Sections that can be accessed with r0-relative ld/st instruction

Generation when #pragma section r0_disp* is specified

.zbss23

.ebss

Sections that can be accessed with ep-relative ld/st instruction

Generation when #pragma section ep_disp* is specified

.ebss23

.tbss4

Sections that can be accessed with ep-relative sld/sst instruction

Generation when #pragma section ep_disp* is specified

.tbss5

.tbss7

.tbss8

.sbss

Sections that can be accessed with gp-relative ld/st instruction

Generation when #pragma section gp_disp* is specified

.sbss23

Initialized data areas

.data

Sections accessed with r0-relative ld/st (two instructions)

4

.zdata

Sections that can be accessed with r0-relative ld/st instruction

Generation when #pragma section r0_disp* is specified

.zdata23

.edata

Sections that can be accessed with ep-relative ld/st instruction

Generation when #pragma section ep_disp* is specified

.edata23

.tdata4

Sections that can be accessed with ep-relative sld/sst instruction

Generation when #pragma section ep_disp* is specified

.tdata5

.tdata7

.tdata8

.sdata

Sections that can be accessed with gp-relative ld/st instruction

Generation when #pragma section gp_disp* is specified

.sdata23

Constant data areas

.const

Sections accessed with r0-relative ld/st (two instructions)

4

.zconst

Sections that can be accessed with r0-relative ld/st instruction

Generation when #pragma section .zconst* is specified

.zconst23

The default section name can be changed using #pragma section.