maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   readelf? (https://talk.maemo.org/showthread.php?t=67492)

TDSii 2010-12-27 03:40

readelf?
 
i am making a project for the university to propose a new generic security for mobiles.

i noticed that readelf command that is supposedly buildin in all linux distros is not working.

anyone can tell how to install this or make it working?

lma 2010-12-27 13:52

Re: readelf?
 
Quote:

Originally Posted by TDSii (Post 904988)
i noticed that readelf command that is supposedly buildin in all linux distros is not working.

Hm, readelf works for me:

Code:

[sbox-FREMANTLE_ARMEL: ~] > readelf  -h a.out
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:                          ARM
  Version:                          0x1
  Entry point address:              0x82d0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1720 (bytes into file)
  Flags:                            0x5000002, has entry point, Version5 EABI
  Size of this header:              52 (bytes)
  Size of program headers:          32 (bytes)
  Number of program headers:        8
  Size of section headers:          40 (bytes)
  Number of section headers:        29
  Section header string table index: 26

What is the problem you're having exactly?

Radicalz38 2010-12-27 13:58

Re: readelf?
 
Quote:

Originally Posted by lma (Post 905299)
Hm, readelf works for me:

Code:

[sbox-FREMANTLE_ARMEL: ~] > readelf  -h a.out
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:                          ARM
  Version:                          0x1
  Entry point address:              0x82d0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1720 (bytes into file)
  Flags:                            0x5000002, has entry point, Version5 EABI
  Size of this header:              52 (bytes)
  Size of program headers:          32 (bytes)
  Number of program headers:        8
  Size of section headers:          40 (bytes)
  Number of section headers:        29
  Section header string table index: 26

What is the problem you're having exactly?

that doesn't look like it is run only the device's XTerm?

lardman 2010-12-28 11:36

Re: readelf?
 
The readelf on device may well be a busybox symlink, you might need to compile the full-fat package that provides it, of if the scratchbox binary is arm and has no deps, just copy it over.

lma 2010-12-29 08:22

Re: readelf?
 
Quote:

Originally Posted by Radicalz38 (Post 905307)
that doesn't look like it is run only the device's XTerm?

Ah, I see, you want to run it on the device and your problem is that it's not preinstalled. You should just need to install the binutils package.


All times are GMT. The time now is 06:06.

vBulletin® Version 3.8.8