Here you are:

x0152532@unx0152532:~/mydroid$ readelf --segments ./hello-arm-bionic

Elf file type is EXEC (Executable file)
Entry point 0x8420
There are 6 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  EXIDX          0x0004cc 0x000084cc 0x000084cc 0x00008 0x00008 R   0x4
  PHDR           0x000034 0x00008034 0x00008034 0x000c0 0x000c0 R E 0x4
  INTERP         0x0000f4 0x000080f4 0x000080f4 0x00013 0x00013 R   0x1
      [Requesting program interpreter: /system/bin/linker]
  LOAD           0x000000 0x00008000 0x00008000 0x004d4 0x004d4 R E 0x1000
  LOAD           0x001000 0x00009000 0x00009000 0x000fc 0x00110 RW  0x1000
  DYNAMIC        0x001020 0x00009020 0x00009020 0x000c0 0x000c0 RW  0x4

 Section to Segment mapping:
  Segment Sections...
   00     .ARM.exidx
   01
   02     .interp
   03     .interp .hash .dynsym .dynstr .rel.plt .plt .text .rodata
.ARM.extab .ARM.exidx
   04     .preinit_array .init_array .fini_array .ctors .dynamic .got .bss
   05     .dynamic

x0152532@unx0152532:~/mydroid$ readelf --segments ./linker

Elf file type is EXEC (Executable file)
Entry point 0xb0001000
There are 5 program headers, starting at offset 52

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x0000d4 0x00000000 0xb0000000 0x00000 0x00000 R   0x1000
  LOAD           0x001000 0xb0001000 0xb0001000 0x073bc 0x073bc R E 0x1000
  LOAD           0x009000 0xb0009000 0xb0009000 0x0068c 0x0969c RW  0x1000
  GNU_STACK      0x000000 0x00000000 0x00000000 0x00000 0x00000 RW  0
  EXIDX          0x008004 0xb0008004 0xb0008004 0x003b8 0x003b8 R   0x4

 Section to Segment mapping:
  Segment Sections...
   00
   01     .text .rodata .ARM.extab .ARM.exidx
   02     .preinit_array .init_array .fini_array .ctors .data.rel.ro .got
.data .bss
   03
   04     .ARM.exidx

http://pastebin.com/B9UJcAjt

<http://pastebin.com/B9UJcAjt>Thanks.


On Tue, May 3, 2011 at 4:17 PM, John Reiser <[email protected]> wrote:

> > The formula end = (iph->p_vaddr - interp_addr) + iph->p_memsz;  gives us
> 0xb001269c = (0xb0009000 - 0x0) + 0x969c  so that's why we have interp_size
> as big as 2.9GB. So I tried to do interp_size = end & 0xFFFFF.. There is no
> more UME 22 Error but I got a Segmentation fault (the program works fine
> > alone).
>
> Please run these two readelf commands and post the results:
>        readelf --segments ./hello-arm-bionic   # the name of the main
> program
>        readelf --segments _interpreter_name_   # /lib/ld-linux*.so.* or
> something similar
>
> --
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Valgrind-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>



-- 
Wan Mohd Fairuz WAN ISMAIL

15 Le Palais des Fleurs,
74 Boulevard Raymond Poincare,
06160 Juan les Pins, FRANCE.
http://www.watt.com.my
+6 017 2071591
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to