Red Hat ENTERPRISE LINUX 4 - USING BINUTILS Instrukcja Użytkownika

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Podręczniki do oprogramowania Red Hat ENTERPRISE LINUX 4 - USING BINUTILS. Red Hat Enterprise Linux 4 Using binutils, the GNU Binary Utilities Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj

Podsumowanie treści

Strona 1 - Utilities

Red Hat Enterprise Linux 4Using binutils, the GNU BinaryUtilities

Strona 2

4 Chapter 2. ardDelete modules from the archive. Specify the names of modules to be deleted as member. . . ; thearchive is untouched if you specify no

Strona 3 - Table of Contents

Chapter 2. ar 5If there is more than one file with the same name (say, fie) in an archive (say b.a), ar t b.afie lists only the first instance; to see t

Strona 4

6 Chapter 2. arThis option will cause gnu ar to match file names using a complete path name, which can beconvenient when extracting a single file from a

Strona 5

Chapter 2. ar 7• comments are allowed; text after either of the characters * or ; is ignored.• Whenever you use a list of names as part of the argumen

Strona 6

8 Chapter 2. arENDExit from ar, with a 0 exit code to indicate successful completion. This command does not savethe output file; if you have changed th

Strona 7 - Introduction

Chapter 3.nmnm [-a|--debug-syms] [-g|--extern-only][-B] [-C|--demangle[=style]] [-D|--dynamic][-S|--print-size] [-s|--print-armap][-A|-o|--print-file-

Strona 8 - 2 Chapter 1. Introduction

10 Chapter 3. nmNThe symbol is a debugging symbol.RThe symbol is in a read only data section.SThe symbol is in an uninitialized data section for small

Strona 9 - Chapter 2

Chapter 3. nm 11-C-demangle[=style]Decode (demangle) low-level symbol names into user-level names. Besides removing any initialunderscore prepended by

Strona 10

12 Chapter 3. nm-s-print-armapWhen listing symbols from archive members, include the index: a mapping (stored in the archiveby ar or ranlib) of which

Strona 11

Chapter 4.objcopyobjcopy [-F bfdname|--target=bfdname][-I bfdname|--input-target=bfdname][-O bfdname|--output-target=bfdname][-B bfdarch|--binary-arch

Strona 12

Red Hat Enterprise Linux 4: Using binutils, the GNU Binary UtilitiesCopyright © 1987, 1989, 1991-2004 Free Software Foundation, Inc.Permission is gran

Strona 13

14 Chapter 4. objcopy[--help] [--info]infile [outfile]The gnu objcopy utility copies the contents of an object file to another. objcopy uses the gnu bf

Strona 14

Chapter 4. objcopy 15_binary_objfile_end and _binary_objfile_size. e.g. you can transform a picture file into anobject file and then access it in your c

Strona 15 - Chapter 3

16 Chapter 4. objcopythe symbol name. If the first character of the symbol name is the exclamation point (!) then thesense of the switch is reversed fo

Strona 16 - • The symbol name

Chapter 4. objcopy 17-change-addresses incr-adjust-vma incrChange the VMA and LMA addresses of all sections, as well as the start address, by addingin

Strona 17

18 Chapter 4. objcopy-add-section sectionname=filenameAdd a new section named sectionname while copying the file. The contents of the new sectionare ta

Strona 18

Chapter 4. objcopy 19-keep-symbols=filenameApply -keep-symbol option to each symbol listed in the file filename. filename is simply aflat file, with one

Strona 19 - Chapter 4

20 Chapter 4. objcopy-add-gnu-debuglink=path-to-fileCreates a .gnu_debuglink section which contains a reference to path-to-file and adds it tothe outp

Strona 20

Chapter 5.objdumpobjdump [-a|--archive-headers][-b bfdname|--target=bfdname][-C|--demangle[=style] ][-d|--disassemble][-D|--disassemble-all][-z|--disa

Strona 21

22 Chapter 5. objdump-adjust-vma=offsetWhen dumping information, first add offset to all the section addresses. This is useful if thesection addresses

Strona 22

Chapter 5. objdump 23-EB-EL-endian={big|little}Specify the endianness of the object files. This only affects disassembly. This can be useful whendisass

Strona 23

Table of Contents1. Introduction...

Strona 24

24 Chapter 5. objdump-M options-disassembler-options=optionsPass target specific information to the disassembler. Only supported on some targets. If it

Strona 25

Chapter 5. objdump 25reg-names=ABIPrint GPR and FPR names as appropriate for the selected ABI.reg-names=ARCHPrint CPU-specific register names (CP0 regi

Strona 26

26 Chapter 5. objdump-start-address=addressStart displaying data at the specified address. This affects the output of the -d, -r and -s options.-stop-a

Strona 27 - Chapter 5

Chapter 6.ranlibranlib [-vV] archiveranlib generates an index to the contents of an archive and stores it in the archive. The index listseach symbol d

Strona 28

28 Chapter 6. ranlib

Strona 29

Chapter 7.sizesize [-A|-B|--format=compatibility][--help][-d|-o|-x|--radix=number][-t|--totals][--target=bfdname] [-V|--version][objfile...]The gnu si

Strona 30

30 Chapter 7. size-d-o-x-radix=numberUsing one of these options, you can control whether the size of each section is given in dec-imal (-d, or -radix=

Strona 31

Chapter 8.stringsstrings [-afov] [-min-len][-n min-len] [--bytes=min-len][-t radix] [--radix=radix][-e encoding] [--encoding=encoding][-] [--all] [--p

Strona 32

32 Chapter 8. strings-e encoding-encoding=encodingSelect the character encoding of the strings that are to be found. Possible values for encodingare:

Strona 33 - Chapter 6

Chapter 9.stripstrip [-F bfdname |--target=bfdname][-I bfdname |--input-target=bfdname][-O bfdname |--output-target=bfdname][-s|--strip-all][-S|-g|-d|

Strona 35 - Chapter 7

34 Chapter 9. strip-s-strip-allRemove all symbols.-g-S-d-strip-debugRemove debugging symbols only.-strip-unneededRemove all symbols that are not neede

Strona 36

Chapter 9. strip 35-only-keep-debugStrip a file, removing any sections that would be stripped by -strip-debug and leaving thedebugging sections.The int

Strona 37 - Chapter 8

36 Chapter 9. strip

Strona 38

Chapter 10.c++filtc++filt [-_|--strip-underscores][-j|--java][-n|--no-strip-underscores][-p|--no-params][-s format|--format=format][--help] [--version]

Strona 39 - Chapter 9

38 Chapter 10. c++filt-s format-format=formatc++filt can decode various methods of mangling, used by different compilers. The argumentto this option se

Strona 40

Chapter 10. c++filt 39

Strona 41

40 Chapter 10. c++filt

Strona 42 - 36 Chapter 9. strip

Chapter 11.addr2lineaddr2line [-b bfdname|--target=bfdname][-C|--demangle[=style]][-e filename|--exe=filename][-f|--functions] [-s|--basename][-H|--he

Strona 43 - Chapter 10

42 Chapter 11. addr2line-f-functionsDisplay function names as well as file and line number information.-s-basenamesDisplay only the base of each file na

Strona 44

Chapter 12.nlmconvnlmconv converts a relocatable object file into a NetWare Loadable Module.Warning: nlmconv is not always built as part of the binary

Strona 46 - 40 Chapter 10. c++filt

44 Chapter 12. nlmconv-l linker-linker=linkerUse linker for any linking. linker can be an absolute or a relative pathname.-h-helpPrints a usage summar

Strona 47 - Chapter 11

Chapter 13.windreswindres may be used to manipulate Windows resources.Warning: windres is not always built as part of the binary utilities, since it i

Strona 48 - 42 Chapter 11. addr2line

46 Chapter 13. windres-o filename-output filenameThe name of the output file. If this option is not used, then windres will use the first non-optionargu

Strona 49 - Chapter 12

Chapter 13. windres 47-l val-language valSpecify the default language to use when reading an rc file. val should be a hexadecimal lan-guage code. The l

Strona 51 - Chapter 13

Chapter 14.Create files needed to build and use DLLsdlltool may be used to create the files needed to build and use dynamic link libraries (DLLs).Warnin

Strona 52

50 Chapter 14. Create files needed to build and use DLLsThe second file needed for DLL creation is an exports file. This file is linked with the object fil

Strona 53

Chapter 14. Create files needed to build and use DLLs 51-no-export-all-symbolsOnly export symbols explicitly listed in an input .def file or in .drectve

Strona 54 - 48 Chapter 13. windres

52 Chapter 14. Create files needed to build and use DLLs-k-kill-atSpecifies that when dlltool is creating the exports file it should not append the strin

Strona 55 - Chapter 14

Chapter 14. Create files needed to build and use DLLs 53-V-versionDisplays dlltool’s version number and then exits.

Strona 57

54 Chapter 14. Create files needed to build and use DLLs

Strona 58

Chapter 15.readelfreadelf [-a|--all][-h|--file-header][-l|--program-headers|--segments][-S|--section-headers|--sections][-e|--headers][-s|--syms|--sym

Strona 59 - -version

56 Chapter 15. readelf-S-sections-section-headersDisplays the information contained in the file’s section headers, if it has any.-s-symbols-symsDisplay

Strona 60

Chapter 15. readelf 57-w[liaprmfFso]-debug-dump[=line,=info,=abbrev,=pubnames,=ranges,=macro,=frames,=frames-interp,=str,=loc]Displays the contents of

Strona 61 - Chapter 15

58 Chapter 15. readelf

Strona 62

Chapter 16.Selecting the Target SystemYou can specify two aspects of the target system to the gnu binary file utilities, each in several ways:• the tar

Strona 63

60 Chapter 16. Selecting the Target System16.1.3. objcopyand stripOutput TargetWays to specify:1. command line options: -O or -output-target, or -F or

Strona 64 - 58 Chapter 15. readelf

Chapter 17.Reporting BugsYour bug reports play an essential role in making the binary utilities reliable.Reporting a bug may help you by bringing a so

Strona 65 - Selecting the Target System

62 Chapter 17. Reporting BugsWithout this, we will not know whether there is any point in looking for the bug in the currentversion of the binary util

Strona 66 - 16.2. Architecture Selection

Chapter 17. Reporting Bugs 63• A patch for the bug.A patch for the bug does help us if it is a good one. But do not omit the necessary information, su

Strona 67 - Reporting Bugs

Chapter 1.IntroductionThis brief manual contains documentation for the gnu binary utilities (collectively version2.15.92.0.2):This document is distrib

Strona 68

64 Chapter 17. Reporting Bugs

Strona 69 - • A patch for the bug

Appendix A.GNU Free Documentation LicenseVersion 1.1, March 2000Copyright (C) 2000 Free Software Foundation, Inc.59 Temple Place, Suite 330, Boston, M

Strona 70 - 64 Chapter 17. Reporting Bugs

66 Appendix A. GNU Free Documentation LicenseA "Transparent" copy of the Document means a machine-readable copy, represented in a for-mat wh

Strona 71 - Appendix A

Appendix A. GNU Free Documentation License 67version of the Document.5. MODIFICATIONSYou may copy and distribute a Modified Version of the Document und

Strona 72

68 Appendix A. GNU Free Documentation LicenseYou may combine the Document with other documents released under this License, under theterms defined in s

Strona 73

Appendix A. GNU Free Documentation License 69The Free Software Foundation may publish new, revised versions of the GNU Free Documenta-tion License fro

Strona 74

70 Appendix A. GNU Free Documentation License

Strona 75

Index.stab, see Chapter 5 objdumpAaddr2line, see Chapter 11 addr2lineaddress to file name and line number, see Chapter 11addr2lineall header informatio

Strona 76

72 IndexHheader information, all, see Chapter 5 objdumpIinput .def file, see Chapter 14 Create files needed tobuild and use DLLsinput file name, see Chap

Strona 77

Index 73symbol table entries, printing, see Chapter 5 objdumpsymbols, see Chapter 3 nmsymbols, discarding, see Chapter 9 stripUundefined symbols, see C

Strona 78 - 72 Index

2 Chapter 1. Introduction

Strona 80

Chapter 2.arar [-]p[mod [relpos] [count]] archive [member...]ar -M [mri-script ]The gnu ar program creates, modifies, and extracts from archives. An ar

Komentarze do niniejszej Instrukcji

Brak uwag