Quick question?
Sir Ace
chandleg@wizardsworks.org
Sun Jan 13 08:46:00 GMT 2002
On 12 Jan 2002, Ian Lance Taylor wrote:
> Please send replies to the list, not just to me. Thanks.
oops..
> What is the exact error message? When providing a bug report, never
> paraphrase; always quote.
example on dreamcast:
bash-2.05# /usr/local/bin/as
bash: /usr/local/bin/as: No such file or directory
bash-2.05# ls -al /usr/local/bin/as
rwxr-xr-x 2 0 0 4119410 Jan 4 23:05 /usr/local/bin/as
on nfsroot server:
bash-2.05# file /daydream/usr/local/bin/as
/daydream/usr/local/bin/as: ELF 32-bit LSB executable, Hitachi SH, version
1, dynamically linked (uses shared libs), not stripped
bash-2.05#
> You can get the same information from objdump -p. Presumably you
> would use a HOST-x-sh4-elf objdump for this. What is the output of
> objdump -p on the executables which fail to run?
--------------------------------------------------------------------------
./as: file format elf32-sh-linux
Program Header:
PHDR off 0x00000034 vaddr 0x00400034 paddr 0x00400034 align 2**2
filesz 0x000000c0 memsz 0x000000c0 flags r-x
INTERP off 0x000000f4 vaddr 0x004000f4 paddr 0x004000f4 align 2**0
filesz 0x00000013 memsz 0x00000013 flags r--
LOAD off 0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
filesz 0x0006f8b0 memsz 0x0006f8b0 flags r-x
LOAD off 0x0006f8b0 vaddr 0x0047f8b0 paddr 0x0047f8b0 align 2**16
filesz 0x00003d2c memsz 0x0000c824 flags rw-
DYNAMIC off 0x0007353c vaddr 0x0048353c paddr 0x0048353c align 2**2
filesz 0x000000a0 memsz 0x000000a0 flags rw-
NOTE off 0x000733d0 vaddr 0x004833d0 paddr 0x004833d0 align 2**4
filesz 0x00000020 memsz 0x00000020 flags r--
Dynamic Section:
NEEDED libc.so.6
INIT 0x401100
FINI 0x45d8a0
HASH 0x400108
STRTAB 0x400910
SYMTAB 0x400380
STRSZ 0x305
SYMENT 0x10
DEBUG 0x0
PLTGOT 0x483400
PLTRELSZ 0x390
PLTREL 0x7
JMPREL 0x400d70
RELA 0x400d10
RELASZ 0x60
RELAENT 0xc
VERNEED 0x400ce0
VERNEEDNUM 0x1
VERSYM 0x400c2c
Version References:
required from libc.so.6:
0x09691a73 0x00 03 GLIBC_2.2.3
0x0d696912 0x00 02 GLIBC_2.2
-----------------------------------------------------------------------
./ld: file format elf32-sh-linux
Program Header:
PHDR off 0x00000034 vaddr 0x00400034 paddr 0x00400034 align 2**2
filesz 0x000000c0 memsz 0x000000c0 flags r-x
INTERP off 0x000000f4 vaddr 0x004000f4 paddr 0x004000f4 align 2**0
filesz 0x00000013 memsz 0x00000013 flags r--
LOAD off 0x00000000 vaddr 0x00400000 paddr 0x00400000 align 2**16
filesz 0x0007cbe8 memsz 0x0007cbe8 flags r-x
LOAD off 0x0007cbe8 vaddr 0x0048cbe8 paddr 0x0048cbe8 align 2**16
filesz 0x000005ec memsz 0x00000d90 flags rw-
DYNAMIC off 0x0007d134 vaddr 0x0048d134 paddr 0x0048d134 align 2**2
filesz 0x000000a0 memsz 0x000000a0 flags rw-
NOTE off 0x0007cfc0 vaddr 0x0048cfc0 paddr 0x0048cfc0 align 2**4
filesz 0x00000020 memsz 0x00000020 flags r--
Dynamic Section:
NEEDED libc.so.6
INIT 0x401180
FINI 0x45afe0
HASH 0x400108
STRTAB 0x40094c
SYMTAB 0x40038c
STRSZ 0x31a
SYMENT 0x10
DEBUG 0x0
PLTGOT 0x48cff0
PLTRELSZ 0x3a8
PLTREL 0x7
JMPREL 0x400dd0
RELA 0x400d64
RELASZ 0x6c
RELAENT 0xc
VERNEED 0x400d34
VERNEEDNUM 0x1
VERSYM 0x400c7c
Version References:
required from libc.so.6:
0x09691a73 0x00 03 GLIBC_2.2.3
0x0d696912 0x00 02 GLIBC_2.2
More information about the Binutils
mailing list