Everything

 

-PADDING


This option fills in data at the end of a section.

[Specification format]

-PADDING

 

-

Interpretation when omitted

None

[Detailed description]

-

This option fills in data at the end of a section so that the section size is a multiple of the alignment of the section.

[Example of use]

-

In the following case, 1 byte of padding data is filled in the .SEC1 section, and linking is performed with a size of 0x06.

Alignment of the .SEC1 section: 2 bytes

Size of the .SEC1 section: 0x05 bytes

Alignment of the .SEC2 section: 1 byte

Size of the .SEC2 section: 0x03 bytes

>rlink a.obj b.obj -start=.SEC1,.SEC2/0 -padding

 

-

In the following case, if 1 byte of padding data is filled in the .SEC1 section, and linking is performed with a size of 0x06, then an error will be output because it overlaps with the .SEC2 section.

Alignment of the .SEC1 section: 2 bytes

Size of the .SEC1 section: 0x05 bytes

Alignment of the .SEC2 section: 1 byte

Size of the .SEC2 section: 0x03 bytes

>rlink a.obj b.obj -start=.SEC1/0,.SEC2/5 -padding

[Remark]

-

The value of the generated padding data is 0x00.

-

Since padding is not performed to an absolute address section, the size of an absolute address section should be adjusted by the user.