📄 expos.lds
字号:
/* * ld 脚本 * */OUTPUT_FORMAT("coff-go32") OUTPUT_ARCH(i386)ENTRY(Start_OS)SECTIONS{ . = 0xC0000000 + 0x100000; PROVIDE(__text = .); .text : { *(.text) *(.text.*) *(.gnu.linkonce.t*) *(.const*) *(.ro*) *(.gnu.linkonce.r*) etext = . ; /* . = ALIGN(0x200); */ PROVIDE(__etext = .) ; } = 0x1221 /* 合并中的空隙用0x1221填充 */ .data : { djgpp_first_ctor = . ; *(SORT(.ctors.*)) *(.ctor) djgpp_last_ctor = . ; djgpp_first_dtor = . ; *(SORT(.dtors.*)) *(.dtor) djgpp_last_dtor = . ; *(.data) *(.data.*) *(.gcc_exc*) ___EH_FRAME_BEGIN__ = . ; *(.eh_fram*) ___EH_FRAME_END__ = . ; LONG(0); *(.gnu.linkonce.d*) edata = . ; PROVIDE(__edata = .) ; } .bss SIZEOF(.data) + ADDR(.data) : { PROVIDE(__bss_start = .); /* BSS */ *(.bss) *(COMMON) end = . ; PROVIDE(__end = .) ; } /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } /* DWARF 2 */ .debug_aranges 0 : { *(.debug_aranges) } .debug_pubnames 0 : { *(.debug_pubnames) } .debug_info 0 : { *(.debug_info) *(.gnu.linkonce.wi.*) } .debug_abbrev 0 : { *(.debug_abbrev) } .debug_line 0 : { *(.debug_line) } .debug_frame 0 : { *(.debug_frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } /* . = ALIGN(4096); .data.page_aligned : { *(.data.idt) } . = ALIGN(32); .data.cacheline_aligned : { *(.data.cacheline_aligned) } */ /* Sections to be discarded */ }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -