mywiki:hw:mips:linkscript
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mywiki:hw:mips:linkscript [2014/08/24 07:49] – created shaoguoh | mywiki:hw:mips:linkscript [2022/04/02 17:29] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{: | + | Link Script |
| + | |||
| + | Reference: | {{: | ||
| + | |||
| + | Example | ||
| + | <file hash mpe_fw.lds > | ||
| + | OUTPUT_FORMAT(" | ||
| + | OUTPUT_ARCH(mips) | ||
| + | ENTRY(_start) | ||
| + | |||
| + | SECTIONS | ||
| + | { | ||
| + | .text : { | ||
| + | *(.text) | ||
| + | *(.rodata) | ||
| + | *(.rodata1) | ||
| + | *(.rodata.str1.4) | ||
| + | } | ||
| + | .reginfo : { *(.reginfo) } | ||
| + | |||
| + | | ||
| + | priv_data.o (*.data*) | ||
| + | priv_data.o (*.bss*) | ||
| + | } | ||
| + | |||
| + | .data : { | ||
| + | *(.data) | ||
| + | } | ||
| + | |||
| + | .bss : { | ||
| + | *(.dynbss) | ||
| + | *(.bss) | ||
| + | } | ||
| + | |||
| + | /*check this priv_data section address/ | ||
| + | readelf -S ../ | ||
| + | */ | ||
| + | |||
| + | |||
| + | | ||
| + | end_flag.o (*.*) | ||
| + | } | ||
| + | } | ||
| + | </ | ||
mywiki/hw/mips/linkscript.1408837741.txt.gz · Last modified: (external edit)
