What does > region1 AT > region2 mean in an LD linker script

这篇具有很好参考价值的文章主要介绍了What does > region1 AT > region2 mean in an LD linker script。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

section [address] [(type)] :
  [AT(lma)]
  [ALIGN(section_align) | ALIGN_WITH_INPUT]
  [SUBALIGN(subsection_align)]
  [constraint]
  {
    output-section-command
    output-section-command
    …
  } [>region] [AT>lma_region] [:phdr :phdr …] [=fillexp]
region:
	specifies the virtual memory address (VMA) of the section, 
lma_region:
	pecifies the load memory address (LMA).

The VMA is the address the section will have 
	when the program is run. 
The LMA is the address of the section when program is being loaded. 


In most cases the two addresses will be the same. 
An example of when they might be different is 
	when a data section is loaded into ROM, 
		and then copied into RAM 
			when the program starts up 
this technique is often used to initialize global variables in a ROM based system. 
In this case 
	the ROM address would be the LMA, 
	and the RAM address would be the VMA.
referenced:
	https://sourceware.org/binutils/docs/ld/Basic-Script-Concepts.html

文章来源地址https://www.toymoban.com/news/detail-670525.html

到了这里,关于What does > region1 AT > region2 mean in an LD linker script的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • What is `@Controller` does?

    @Controller 是 SpringMVC 注解,标记一个类作为 Web控制器(Controller) ,负责处理 HTTP请求 并返回 响应结果 在 SpringMVC 中,控制器类的主要职责是: 1、接收来自客户端的 HTTP请求 2、 调用 服务层或其他业务逻辑组件 3、根据操作结果准备 视图模型数据(Model) ,将控制权转移给

    2024年01月17日
    浏览(31)
  • What is `@PathVariable` does?

    @PathVariable 是 SpringMVC 中的注解,用于将 HTTP请求的URI路径变量 映射到 Controller方法参数 上。 当URL路径中包含占位符(由大括号 {} 包围的部分)时,可以使用此注解来绑定这些动态部分到方法参数。

    2024年02月01日
    浏览(28)
  • What is `@Repository` does?

    @Repository 是 Spring 注解,标识数据访问层组件( DAO, Data Access Object ) 当一个类被标记为 @Repository 时: 1、组件扫描与自动代理: Spring 通过组件扫描( Component Scan )机制发现带有 @Repository 的类,并将其纳入 Spring IoC容器 管理,创建对应的 Bean实例 。 2、异常处理增强: Spri

    2024年01月16日
    浏览(32)
  • What is `HttpServletRequestWrapper` does?

    HttpServletRequestWrapper 是 Java Servlet API 中的一个类,作为 HttpServletRequest 接口的包装器(Decorator)实现。 该类设计为 装饰者模式(Decorator Pattern )的一部分,允许开发人员通过包装现有的 HttpServletRequest 对象来定制或修改请求行为。比如: 1、过滤或修改请求参数 2、添加或删除

    2024年01月18日
    浏览(28)
  • What is `WebMvcConfigurer` does?

    WebMvcConfigurer 用于自定义和扩展 SpringMVC 的功能配置。 比如:可以配置如视图解析器、静态资源处理、消息转换器、拦截器等MVC相关的组件。 实现 WebMvcConfigurer 接口,并使用 @Configuration 注解标记,使其成为一个配置类 [实践总结] 拦截器配置(Interceptors) 视图控制器(View C

    2024年01月16日
    浏览(33)
  • What is `XSS` does?

    跨站脚本攻击(Cross-Site Scripting,XSS) 是一种针对网站应用程序的安全漏洞,允许攻击者将 恶意脚本 注入到其他用户查看的网页中。当这些用户访问受感染的页面时,他们的浏览器会执行这些恶意脚本,导致各种安全问题的发生,如 窃取用户的会话信息 、 cookie 或 其他敏感

    2024年01月21日
    浏览(32)
  • What does `rpm -ivh` do?

    rpm -ivh 安装 并 显示安装进度 ( –install–verbose–hash ) [Ref] rpm -uvh和-ivh有什么区别以及zabbix 安装部署及php升级 rpm 执行安装包 分 二进制包(Binary) 以及 源代码包(Source) 两种 二进制包(Binary) 可以直接安装在计算机中 源代码包(Source) 包将会由 RPM 自动编译、安装。源代

    2024年02月02日
    浏览(34)
  • What is `StringEscapeUtils.escapeHtml4` does?

    StringEscapeUtils.escapeHtml4 作用是将 特殊字符 转换为它们对应的 HTML实体形式 ,从而防止这些字符在网页中被解析为 HTML标签 或 脚本 ,有助于防止 跨站脚本攻击(XSS, Cross-Site Scripting) 对于现代Web应用来说,建议使用更全面的安全策略来防止XSS攻击,而不仅仅是依赖于这种简单

    2024年01月18日
    浏览(31)
  • What are the meaning of linear_velocity and angular_velocity?

    linear_velocity and angular_velocity are commonly used concepts in robotics. linear_velocity refers to the speed of movement in a straight line. It is measured in meters/second (m/s). For a mobile robot, the linear velocity refers to the speed at which the robot as a whole is moving in a straight line. angular_velocity refers to the speed of rotation, measur

    2023年04月24日
    浏览(34)
  • What is `addFormattersdoes` in `WebMvcConfigurer` ?

    addFormatters 方法在 SpringMVC 框架中主要用于向 Spring容器 注册自定义的 格式化器(Formatter) SpringMVC 内置了一系列的标准格式化器,用于处理日期、数字和其他常见类型的转换。 开发者也可以通过实现 WebMvcConfigurer 接口,并重写其中的 addFormatters 方法来添加 自定义格式化器 。

    2024年01月18日
    浏览(27)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包