Hauptmenü öffnen

Vu+ WIKI β

Änderungen

Cross Compiler

5.660 Bytes hinzugefügt, 15:16, 26. Feb. 2023
keine Bearbeitungszusammenfassung
Hier sehen wir alle interessanten Informationen, zum Beispiel welche Shared-Libraries das Programm in welcher Version auf der Mips-Maschine benötigt.
 
<div class="mw-collapsible mw-collapsed">
Ausgabe von <code>objdump grep</code>: bitte aufklappen.
<div class="mw-collapsible-content">
<pre>
 
grep: file format elf32-little
 
Program Header:
PHDR off 0x00000034 vaddr 0x00400034 paddr 0x00400034 align 2**2
filesz 0x00000140 memsz 0x00000140 flags r--
INTERP off 0x00000174 vaddr 0x00400174 paddr 0x00400174 align 2**0
filesz 0x0000000d memsz 0x0000000d flags r--
0x70000003 off 0x000001a8 vaddr 0x004001a8 paddr 0x004001a8 align 2**3
filesz 0x00000018 memsz 0x00000018 flags r--
0x70000000 off 0x000001c0 vaddr 0x004001c0 paddr 0x004001c0 align 2**2
filesz 0x00000018 memsz 0x00000018 flags r--
LOAD off 0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
filesz 0x00040280 memsz 0x00040280 flags r-x
LOAD off 0x00040280 vaddr 0x00450280 paddr 0x00450280 align 2**16
filesz 0x00000ab8 memsz 0x00011580 flags rw-
DYNAMIC off 0x000001d8 vaddr 0x004001d8 paddr 0x004001d8 align 2**2
filesz 0x00000118 memsz 0x00000118 flags r--
NOTE off 0x00000184 vaddr 0x00400184 paddr 0x00400184 align 2**2
filesz 0x00000020 memsz 0x00000020 flags r--
EH_FRAME off 0x00040240 vaddr 0x00440240 paddr 0x00440240 align 2**2
filesz 0x00000014 memsz 0x00000014 flags r--
NULL off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
filesz 0x00000000 memsz 0x00000000 flags ---
 
Dynamic Section:
NEEDED libc.so.6
INIT 0x00402cf4
FINI 0x0043ca60
INIT_ARRAY 0x00450280
INIT_ARRAYSZ 0x00000004
FINI_ARRAY 0x00450284
FINI_ARRAYSZ 0x00000004
HASH 0x004002f0
STRTAB 0x00401d6c
SYMTAB 0x00400b8c
STRSZ 0x00000c84
SYMENT 0x00000010
0x70000016 0x004508b0
0x70000035 0x00050670
DEBUG 0x00000000
PLTGOT 0x004508c0
REL 0x00402c8c
RELSZ 0x00000068
RELENT 0x00000008
0x70000001 0x00000001
0x70000005 0x00000002
0x70000006 0x00400000
0x7000000a 0x00000097
0x70000011 0x0000011e
0x70000012 0x00000029
0x70000013 0x00000098
VERNEED 0x00402c2c
VERNEEDNUM 0x00000001
VERSYM 0x004029f0
 
Version References:
required from libc.so.6:
0x0d696914 0x00 06 GLIBC_2.4
0x0d696915 0x00 05 GLIBC_2.5
0x0d696912 0x00 04 GLIBC_2.2
0x0d696910 0x00 03 GLIBC_2.0
0x0d696913 0x00 02 GLIBC_2.3
 
root@vusolo4k:/media/hdd/install/tut/grep-3.8/src# ^Cjdump -p grep
root@vusolo4k:/media/hdd/install/tut/grep-3.8/src# mipsel-oe-linux-objdump -p grep
 
grep: file format elf32-tradlittlemips
 
Program Header:
PHDR off 0x00000034 vaddr 0x00400034 paddr 0x00400034 align 2**2
filesz 0x00000140 memsz 0x00000140 flags r--
INTERP off 0x00000174 vaddr 0x00400174 paddr 0x00400174 align 2**0
filesz 0x0000000d memsz 0x0000000d flags r--
0x70000003 off 0x000001a8 vaddr 0x004001a8 paddr 0x004001a8 align 2**3
filesz 0x00000018 memsz 0x00000018 flags r--
0x70000000 off 0x000001c0 vaddr 0x004001c0 paddr 0x004001c0 align 2**2
filesz 0x00000018 memsz 0x00000018 flags r--
LOAD off 0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
filesz 0x00040280 memsz 0x00040280 flags r-x
LOAD off 0x00040280 vaddr 0x00450280 paddr 0x00450280 align 2**16
filesz 0x00000ab8 memsz 0x00011580 flags rw-
DYNAMIC off 0x000001d8 vaddr 0x004001d8 paddr 0x004001d8 align 2**2
filesz 0x00000118 memsz 0x00000118 flags r--
NOTE off 0x00000184 vaddr 0x00400184 paddr 0x00400184 align 2**2
filesz 0x00000020 memsz 0x00000020 flags r--
EH_FRAME off 0x00040240 vaddr 0x00440240 paddr 0x00440240 align 2**2
filesz 0x00000014 memsz 0x00000014 flags r--
NULL off 0x00000000 vaddr 0x00000000 paddr 0x00000000 align 2**2
filesz 0x00000000 memsz 0x00000000 flags ---
 
Dynamic Section:
NEEDED libc.so.6
INIT 0x00402cf4
FINI 0x0043ca60
INIT_ARRAY 0x00450280
INIT_ARRAYSZ 0x00000004
FINI_ARRAY 0x00450284
FINI_ARRAYSZ 0x00000004
HASH 0x004002f0
STRTAB 0x00401d6c
SYMTAB 0x00400b8c
STRSZ 0x00000c84
SYMENT 0x00000010
MIPS_RLD_MAP 0x004508b0
MIPS_RLD_MAP_REL 0x00050670
DEBUG 0x00000000
PLTGOT 0x004508c0
REL 0x00402c8c
RELSZ 0x00000068
RELENT 0x00000008
MIPS_RLD_VERSION 0x00000001
MIPS_FLAGS 0x00000002
MIPS_BASE_ADDRESS 0x00400000
MIPS_LOCAL_GOTNO 0x00000097
MIPS_SYMTABNO 0x0000011e
MIPS_UNREFEXTNO 0x00000029
MIPS_GOTSYM 0x00000098
VERNEED 0x00402c2c
VERNEEDNUM 0x00000001
VERSYM 0x004029f0
 
Version References:
required from libc.so.6:
0x0d696914 0x00 06 GLIBC_2.4
0x0d696915 0x00 05 GLIBC_2.5
0x0d696912 0x00 04 GLIBC_2.2
0x0d696910 0x00 03 GLIBC_2.0
0x0d696913 0x00 02 GLIBC_2.3
private flags = 1007: [abi=O32] [mips1] [not 32bitmode] [noreorder] [PIC] [CPIC]
 
MIPS ABI Flags Version: 0
 
ISA: MIPS1
GPR size: 32
CPR1 size: 32
CPR2 size: 0
FP ABI: Hard float (double precision)
ISA Extension: None
ASEs:
None
FLAGS 1: 00000000
FLAGS 2: 00000000
 
</pre>
</div>
</div>
Das Binary kann jetzt auf eine Mips-Box kopiert werden, um endgültig sicherzustellen, dass wir hier keinen Murks produziert haben.
75
Bearbeitungen