beautypg.com

D.3 linker (flnk911) – FUJITSU MB91F109 FR30 User Manual

Page 425

background image

401

APPENDIX D Notes on Using Little Endian Areas

D.3

Linker (flnk911)

The following two items require caution with respect to link-time section allocation
during program design when employing little endian areas.
• Restriction on section types
• No detection of errors

Restriction on Section Types

Only data sections with no initial value can be allocated to little endian areas.

If data, stack, and code sections with initial values are allocated to little endian areas, the result
of subsequent operations cannot be guaranteed because operations such as resolving
addresses are executed by the linker in big endian areas.

No Detection of Errors

The linker outputs no error messages for allocations that violate the above restriction because it
does not recognize little endian areas. Before using little endian areas, check the contents of
the sections allocated to those areas.