Table of Contents
1. Using ld ............................................................................................................................................ 1
2. Overview .......................................................................................................................................... 3
3. Invocation ........................................................................................................................................ 5
3.1. Command Line Options..................................................................................................... 5
3.2. Environment Variables..................................................................................................... 27
4. Linker Scripts................................................................................................................................ 29
4.2. Linker Script Format........................................................................................................ 29
4.5.2. PROVIDE.......................................................................................................... 34
4.6. SECTIONS Command..................................................................................................... 35
4.7. MEMORY Command ...................................................................................................... 45
4.8. PHDRS Command ........................................................................................................... 47
4.9. VERSION Command....................................................................................................... 49
4.10.1. Constants......................................................................................................... 51
4.10.2. Symbol Names ................................................................................................ 51
4.10.4. Operators......................................................................................................... 52
4.10.5. Evaluation ....................................................................................................... 53
5.1.
and the H8/300............................................................................................................ 59
ld
5.2.
and the Intel 960 Family ............................................................................................. 59
ld
5.3.
ld
5.4.
ld
5.5.
and MMIX .................................................................................................................. 60
ld
5.6.
and MSP430 ............................................................................................................... 60
ld
5.7.
ld
5.8.
ld
5.9.
and Xtensa Processors ................................................................................................ 65
ld