zoukankan      html  css  js  c++  java
  • 程序入口

    程序入口

    The first instruction to execute in a program is called the entry point. You can use the

    ENTRY linker script command to set the entry point. The argument is a symbol name:

    ENTRY(symbol)

    There are several ways to set the entry point. The linker will set the entry point by trying

    each of the following methods in order, and stopping when one of them succeeds:

           • the ‘-e’ entry command-line option;

           • the ENTRY(symbol) command in a linker script;

           • the value of the symbol start, if defined;

           • the address of the first byte of the ‘.text’ section, if present;

           • The address 0.

    按照以上的指示有5种情况,但是在kernel/arch/unicore/boot/compressed下的vmlinux.lds(有同目录下的vmlinux.lds.in经过处理生成)写明ENTRY(_start),但是在函数中却没有_start全局标号,但是在.输出.text区中指明_start = .; 感觉很怪异,我们把ENTRY(_start)换成ENTRY(start)也是对的,而且生成的vmlinux没有任何不同

  • 相关阅读:
    shell script-条件语句、循环语句
    shell script-判断式
    shell script
    AngularJs(Part 11)--自定义Directive
    AngularJS中的DI
    javascript的DI
    一些奇怪的Javascript用法
    AngularJS(Part 10)--页面导航
    URL中#符号的作用
    AngularJs(Part 9)--AngularJS 表单
  • 原文地址:https://www.cnblogs.com/openix/p/2469663.html
Copyright © 2011-2022 走看看