User Tools

Site Tools


mywiki:hw:mips:linkscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
mywiki:hw:mips:linkscript [2014/08/24 07:49] – created shaoguohmywiki:hw:mips:linkscript [2022/04/02 17:29] (current) – external edit 127.0.0.1
Line 1: Line 1:
-{{:mywiki:hw:mips:link_script_doc1.pdf|}}+Link Script 
 + 
 +Reference: | {{:mywiki:hw:mips:link_script_doc1.pdf|}} 
 + 
 +Example 
 +<file hash mpe_fw.lds > 
 +OUTPUT_FORMAT("elf32-tradbigmips"
 +OUTPUT_ARCH(mips) 
 +ENTRY(_start) 
 + 
 +SECTIONS 
 +
 +  .text : { 
 +        *(.text) 
 + *(.rodata) 
 + *(.rodata1) 
 + *(.rodata.str1.4) 
 +        } 
 +  .reginfo : { *(.reginfo) } 
 + 
 + .priv_data ALIGN(4096):
 + priv_data.o (*.data*) 
 +    priv_data.o (*.bss*) 
 +   } 
 + 
 +  .data : { 
 + *(.data) 
 +
 +   
 +  .bss  : { 
 + *(.dynbss) 
 + *(.bss) 
 +  } 
 +   
 +  /*check this priv_data section address/size 
 +      readelf -S ../bin_be/mpe_fw_be.elf readelf -S ../bin_be/mpe_fw_be.elf 
 +  */ 
 +  
 + 
 + .bin_size ALIGN(4): { 
 + end_flag.o (*.*) 
 +  } 
 +
 +</file>
mywiki/hw/mips/linkscript.1408837741.txt.gz · Last modified: (external edit)