uboot-2011.12 ported to S3C2440 (Sequence 2) - binutils binary tool set and u-boot

Publisher:云淡雅致Latest update time:2022-03-14 Source: eefocusKeywords:uboot Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Overview

binutils is a set of binary tools, including addr2line, ar, gprof, nm, objcopy, objdumpr, ranlib, size, strings, strip, etc.


ar software

ar is used to create, modify, and extract library files. ar requires at least two parameters to run, for example:

$ ar rv libtest.a add.o minus.o

It means to make add.o and minus.o into the library file libtest.a. Among them, r means to insert the file list into the archive file, and v means to get the operation version number.


So when we reference the library file, we can use:

$ gcc -o test test.c -ltest


nm Software

The role of nm software is to display the information and properties of the target file, such as:

$ nm test.o

         U Add

00000000 T main

         U Minus

         U printf

Here U indicates that the symbol is undefined, T indicates that the symbol is located in the code segment, D indicates that the symbol is located in the initialized data section, and there are also B, t, r, b, R, A, W, d, and so on.


objcopy software

The objcopy software is used to convert target software in one format into target software in another format.

For example, u-boot uses this software to convert u-boot into u-boot.srec format.


objdump software

This software can be used to disassemble and view target file information.


ld software

The ld software is used to link various target files and library files together, locate the addresses of data and functions, and finally generate executable files.


Linker description file:

The linker script file is used to explicitly control the linking process of ld. The "-T" option of ld can specify the name of the linker script file.


The linker script follows the syntax of a specific linker command language, linker scripts. For example, u-boot.lds


Keywords:uboot Reference address:uboot-2011.12 ported to S3C2440 (Sequence 2) - binutils binary tool set and u-boot

Previous article:uboot-2011.12 ported to S3C2440 (Sequence 1) - ELF executable file and its composition
Next article:uboot-2011.12 ported to S3C2440 (Sequence 3) —— References for Makefile

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号