⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sample_test.r

📁 MAKEFILE 经典编写方法
💻 R
字号:
ELF Header:  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00   Class:                             ELF32  Data:                              2's complement, little endian  Version:                           1 (current)  OS/ABI:                            UNIX - System V  ABI Version:                       0  Type:                              EXEC (Executable file)  Machine:                           Intel 80386  Version:                           0x1  Entry point address:               0x8048278  Start of program headers:          52 (bytes into file)  Start of section headers:          19248 (bytes into file)  Flags:                             0x0  Size of this header:               52 (bytes)  Size of program headers:           32 (bytes)  Number of program headers:         6  Size of section headers:           40 (bytes)  Number of section headers:         34  Section header string table index: 31Section Headers:  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al  [ 0]                   NULL            00000000 000000 000000 00      0   0  0  [ 1] .interp           PROGBITS        080480f4 0000f4 000013 00   A  0   0  1  [ 2] .note.ABI-tag     NOTE            08048108 000108 000020 00   A  0   0  4  [ 3] .hash             HASH            08048128 000128 000028 04   A  4   0  4  [ 4] .dynsym           DYNSYM          08048150 000150 000050 10   A  5   1  4  [ 5] .dynstr           STRTAB          080481a0 0001a0 00004c 00   A  0   0  1  [ 6] .gnu.version      VERSYM          080481ec 0001ec 00000a 02   A  4   0  2  [ 7] .gnu.version_r    VERNEED         080481f8 0001f8 000020 00   A  5   1  4  [ 8] .rel.dyn          REL             08048218 000218 000008 08   A  4   0  4  [ 9] .rel.plt          REL             08048220 000220 000010 08   A  4   b  4  [10] .init             PROGBITS        08048230 000230 000017 00  AX  0   0  4  [11] .plt              PROGBITS        08048248 000248 000030 04  AX  0   0  4  [12] .text             PROGBITS        08048278 000278 00019c 00  AX  0   0  4  [13] .fini             PROGBITS        08048414 000414 00001b 00  AX  0   0  4  [14] .rodata           PROGBITS        08048440 000440 00007e 00   A  0   0 32  [15] .eh_frame         PROGBITS        080484c0 0004c0 000004 00   A  0   0  4  [16] .data             PROGBITS        080494c4 0004c4 00000c 00  WA  0   0  4  [17] .dynamic          DYNAMIC         080494d0 0004d0 0000c8 08  WA  5   0  4  [18] .ctors            PROGBITS        08049598 000598 000008 00  WA  0   0  4  [19] .dtors            PROGBITS        080495a0 0005a0 000008 00  WA  0   0  4  [20] .jcr              PROGBITS        080495a8 0005a8 000004 00  WA  0   0  4  [21] .got              PROGBITS        080495ac 0005ac 000018 04  WA  0   0  4  [22] .bss              NOBITS          080495c4 0005c4 000004 00  WA  0   0  4  [23] .comment          PROGBITS        00000000 0005c4 000198 00      0   0  1  [24] .debug_aranges    PROGBITS        00000000 000760 0000d8 00      0   0  8  [25] .debug_pubnames   PROGBITS        00000000 000838 000081 00      0   0  1  [26] .debug_info       PROGBITS        00000000 0008b9 002d62 00      0   0  1  [27] .debug_abbrev     PROGBITS        00000000 00361b 0004cd 00      0   0  1  [28] .debug_line       PROGBITS        00000000 003ae8 000548 00      0   0  1  [29] .debug_frame      PROGBITS        00000000 004030 0000a8 00      0   0  4  [30] .debug_str        PROGBITS        00000000 0040d8 00092b 01  MS  0   0  1  [31] .shstrtab         STRTAB          00000000 004a03 00012b 00      0   0  1  [32] .symtab           SYMTAB          00000000 005080 000700 10     33  56  4  [33] .strtab           STRTAB          00000000 005780 000415 00      0   0  1Key to Flags:  W (write), A (alloc), X (execute), M (merge), S (strings)  I (info), L (link order), G (group), x (unknown)  O (extra OS processing required) o (OS specific), p (processor specific)Program Headers:  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align  PHDR           0x000034 0x08048034 0x08048034 0x000c0 0x000c0 R E 0x4  INTERP         0x0000f4 0x080480f4 0x080480f4 0x00013 0x00013 R   0x1      [Requesting program interpreter: /lib/ld-linux.so.2]  LOAD           0x000000 0x08048000 0x08048000 0x004c4 0x004c4 R E 0x1000  LOAD           0x0004c4 0x080494c4 0x080494c4 0x00100 0x00104 RW  0x1000  DYNAMIC        0x0004d0 0x080494d0 0x080494d0 0x000c8 0x000c8 RW  0x4  NOTE           0x000108 0x08048108 0x08048108 0x00020 0x00020 R   0x4 Section to Segment mapping:  Segment Sections...   00        01     .interp    02     .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .eh_frame    03     .data .dynamic .ctors .dtors .jcr .got .bss    04     .dynamic    05     .note.ABI-tag Dynamic segment at offset 0x4d0 contains 20 entries:  Tag        Type                         Name/Value 0x00000001 (NEEDED)                     Shared library: [libc.so.6] 0x0000000c (INIT)                       0x8048230 0x0000000d (FINI)                       0x8048414 0x00000004 (HASH)                       0x8048128 0x00000005 (STRTAB)                     0x80481a0 0x00000006 (SYMTAB)                     0x8048150 0x0000000a (STRSZ)                      76 (bytes) 0x0000000b (SYMENT)                     16 (bytes) 0x00000015 (DEBUG)                      0x0 0x00000003 (PLTGOT)                     0x80495ac 0x00000002 (PLTRELSZ)                   16 (bytes) 0x00000014 (PLTREL)                     REL 0x00000017 (JMPREL)                     0x8048220 0x00000011 (REL)                        0x8048218 0x00000012 (RELSZ)                      8 (bytes) 0x00000013 (RELENT)                     8 (bytes) 0x6ffffffe (VERNEED)                    0x80481f8 0x6fffffff (VERNEEDNUM)                 1 0x6ffffff0 (VERSYM)                     0x80481ec 0x00000000 (NULL)                       0x0Relocation section '.rel.dyn' at offset 0x218 contains 1 entries: Offset     Info    Type            Sym.Value  Sym. Name080495c0  00000406 R_386_GLOB_DAT    00000000   __gmon_start__Relocation section '.rel.plt' at offset 0x220 contains 2 entries: Offset     Info    Type            Sym.Value  Sym. Name080495b8  00000107 R_386_JUMP_SLOT   08048258   __libc_start_main080495bc  00000207 R_386_JUMP_SLOT   08048268   printfThere are no unwind sections in this file.Symbol table '.dynsym' contains 5 entries:   Num:    Value  Size Type    Bind   Vis      Ndx Name     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND      1: 08048258   251 FUNC    GLOBAL DEFAULT  UND __libc_start_main@GLIBC_2.0 (2)     2: 08048268    57 FUNC    GLOBAL DEFAULT  UND printf@GLIBC_2.0 (2)     3: 08048444     4 OBJECT  GLOBAL DEFAULT   14 _IO_stdin_used     4: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__Symbol table '.symtab' contains 112 entries:   Num:    Value  Size Type    Bind   Vis      Ndx Name     0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND      1: 080480f4     0 SECTION LOCAL  DEFAULT    1      2: 08048108     0 SECTION LOCAL  DEFAULT    2      3: 08048128     0 SECTION LOCAL  DEFAULT    3      4: 08048150     0 SECTION LOCAL  DEFAULT    4      5: 080481a0     0 SECTION LOCAL  DEFAULT    5      6: 080481ec     0 SECTION LOCAL  DEFAULT    6      7: 080481f8     0 SECTION LOCAL  DEFAULT    7      8: 08048218     0 SECTION LOCAL  DEFAULT    8      9: 08048220     0 SECTION LOCAL  DEFAULT    9     10: 08048230     0 SECTION LOCAL  DEFAULT   10     11: 08048248     0 SECTION LOCAL  DEFAULT   11     12: 08048278     0 SECTION LOCAL  DEFAULT   12     13: 08048414     0 SECTION LOCAL  DEFAULT   13     14: 08048440     0 SECTION LOCAL  DEFAULT   14     15: 080484c0     0 SECTION LOCAL  DEFAULT   15     16: 080494c4     0 SECTION LOCAL  DEFAULT   16     17: 080494d0     0 SECTION LOCAL  DEFAULT   17     18: 08049598     0 SECTION LOCAL  DEFAULT   18     19: 080495a0     0 SECTION LOCAL  DEFAULT   19     20: 080495a8     0 SECTION LOCAL  DEFAULT   20     21: 080495ac     0 SECTION LOCAL  DEFAULT   21     22: 080495c4     0 SECTION LOCAL  DEFAULT   22     23: 00000000     0 SECTION LOCAL  DEFAULT   23     24: 00000000     0 SECTION LOCAL  DEFAULT   24     25: 00000000     0 SECTION LOCAL  DEFAULT   25     26: 00000000     0 SECTION LOCAL  DEFAULT   26     27: 00000000     0 SECTION LOCAL  DEFAULT   27     28: 00000000     0 SECTION LOCAL  DEFAULT   28     29: 00000000     0 SECTION LOCAL  DEFAULT   29     30: 00000000     0 SECTION LOCAL  DEFAULT   30     31: 00000000     0 SECTION LOCAL  DEFAULT   31     32: 00000000     0 SECTION LOCAL  DEFAULT   32     33: 00000000     0 SECTION LOCAL  DEFAULT   33     34: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    35: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    36: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    37: 00000000     0 FILE    LOCAL  DEFAULT  ABS <built-in>    38: 00000000     0 FILE    LOCAL  DEFAULT  ABS abi-note.S    39: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    40: 00000000     0 FILE    LOCAL  DEFAULT  ABS abi-note.S    41: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    42: 00000000     0 FILE    LOCAL  DEFAULT  ABS abi-note.S    43: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    44: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    45: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    46: 00000000     0 FILE    LOCAL  DEFAULT  ABS <built-in>    47: 00000000     0 FILE    LOCAL  DEFAULT  ABS abi-note.S    48: 00000000     0 FILE    LOCAL  DEFAULT  ABS init.c    49: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    50: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    51: 00000000     0 FILE    LOCAL  DEFAULT  ABS initfini.c    52: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    53: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    54: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    55: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    56: 00000000     0 FILE    LOCAL  DEFAULT  ABS <built-in>    57: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    58: 0804829c     0 FUNC    LOCAL  DEFAULT   12 call_gmon_start    59: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c    60: 08049598     0 OBJECT  LOCAL  DEFAULT   18 __CTOR_LIST__    61: 080495a0     0 OBJECT  LOCAL  DEFAULT   19 __DTOR_LIST__    62: 080484c0     0 OBJECT  LOCAL  DEFAULT   15 __EH_FRAME_BEGIN__    63: 080495a8     0 OBJECT  LOCAL  DEFAULT   20 __JCR_LIST__    64: 080494cc     0 OBJECT  LOCAL  DEFAULT   16 p.0    65: 080495c4     1 OBJECT  LOCAL  DEFAULT   22 completed.1    66: 080482c0     0 FUNC    LOCAL  DEFAULT   12 __do_global_dtors_aux    67: 080482fc     0 FUNC    LOCAL  DEFAULT   12 frame_dummy    68: 00000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c    69: 0804959c     0 OBJECT  LOCAL  DEFAULT   18 __CTOR_END__    70: 080495a4     0 OBJECT  LOCAL  DEFAULT   19 __DTOR_END__    71: 080484c0     0 OBJECT  LOCAL  DEFAULT   15 __FRAME_END__    72: 080495a8     0 OBJECT  LOCAL  DEFAULT   20 __JCR_END__    73: 080483f0     0 FUNC    LOCAL  DEFAULT   12 __do_global_ctors_aux    74: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    75: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    76: 00000000     0 FILE    LOCAL  DEFAULT  ABS initfini.c    77: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    78: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    79: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    80: 00000000     0 FILE    LOCAL  DEFAULT  ABS <command line>    81: 00000000     0 FILE    LOCAL  DEFAULT  ABS <built-in>    82: 00000000     0 FILE    LOCAL  DEFAULT  ABS /usr/src/build/231499-i38    83: 00000000     0 FILE    LOCAL  DEFAULT  ABS main.c    84: 00000000     0 FILE    LOCAL  DEFAULT  ABS serial.c    85: 00000000     0 FILE    LOCAL  DEFAULT  ABS net.c    86: 080494d0     0 OBJECT  GLOBAL DEFAULT   17 _DYNAMIC    87: 08048440     4 OBJECT  GLOBAL DEFAULT   14 _fp_hw    88: 080494c4     0 NOTYPE  GLOBAL DEFAULT  ABS __fini_array_end    89: 08048374    24 FUNC    GLOBAL DEFAULT   12 net_test    90: 080494c8     0 OBJECT  GLOBAL HIDDEN   16 __dso_handle    91: 080483bc    52 FUNC    GLOBAL DEFAULT   12 __libc_csu_fini    92: 08048230     0 FUNC    GLOBAL DEFAULT   10 _init    93: 08048278     0 FUNC    GLOBAL DEFAULT   12 _start    94: 080494c4     0 NOTYPE  GLOBAL DEFAULT  ABS __fini_array_start    95: 0804838c    48 FUNC    GLOBAL DEFAULT   12 __libc_csu_init    96: 080495c4     0 NOTYPE  GLOBAL DEFAULT  ABS __bss_start    97: 08048328    49 FUNC    GLOBAL DEFAULT   12 main    98: 08048258   251 FUNC    GLOBAL DEFAULT  UND __libc_start_main@@GLIBC_    99: 080494c4     0 NOTYPE  GLOBAL DEFAULT  ABS __init_array_end   100: 0804835c    24 FUNC    GLOBAL DEFAULT   12 serial_test   101: 080494c4     0 NOTYPE  WEAK   DEFAULT   16 data_start   102: 08048268    57 FUNC    GLOBAL DEFAULT  UND printf@@GLIBC_2.0   103: 08048414     0 FUNC    GLOBAL DEFAULT   13 _fini   104: 080495c4     0 NOTYPE  GLOBAL DEFAULT  ABS _edata   105: 080495ac     0 OBJECT  GLOBAL DEFAULT   21 _GLOBAL_OFFSET_TABLE_   106: 080495c8     0 NOTYPE  GLOBAL DEFAULT  ABS _end   107: 080494c4     0 NOTYPE  GLOBAL DEFAULT  ABS __init_array_start   108: 08048444     4 OBJECT  GLOBAL DEFAULT   14 _IO_stdin_used   109: 080494c4     0 NOTYPE  GLOBAL DEFAULT   16 __data_start   110: 00000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses   111: 00000000     0 NOTYPE  WEAK   DEFAULT  UND __gmon_start__Histogram for bucket list length (total of 3 buckets): Length  Number     % of total  Coverage      0  0          (  0.0%)      1  2          ( 66.7%)     50.0%      2  1          ( 33.3%)    100.0%Version symbols section '.gnu.version' contains 5 entries: Addr: 00000000080481ec  Offset: 0x0001ec  Link: 4 (.dynsym)  000:   0 (*local*)       2 (GLIBC_2.0)     2 (GLIBC_2.0)     1 (*global*)     004:   0 (*local*)    Version needs section '.gnu.version_r' contains 1 entries: Addr: 0x00000000080481f8  Offset: 0x0001f8  Link to section: 5 (.dynstr)  000000: Version: 1  File: libc.so.6  Cnt: 1  0x0010: Name: GLIBC_2.0  Flags: none  Version: 2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -