[uClibc] anyone using ARM shared libraries?

David Meggy dmeggy at techsol.ca
Mon May 10 21:06:03 UTC 2004


On Mon, 2004-05-10 at 13:51, David Poole wrote:
> Sorry to bug you again, but could you post a "readelf -d -e 
> ld-uClibc-0.9.26.so"? I'm wondering if the offset 0x0c48 is landing in 
> .text and what the permissions of that section might be.

no problem
 

$ readelf -d -e ld-uClibc-0.9.26.so
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            ARM
  ABI Version:                       0
  Type:                              DYN (Shared object file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0xc60
  Start of program headers:          52 (bytes into file)
  Start of section headers:          19040 (bytes into file)
  Flags:                             0x2, has entry point, GNU EABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         3
  Size of section headers:           40 (bytes)
  Number of section headers:         15
  Section header string table index: 14

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg
Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00     
0   0  0
  [ 1] .hash             HASH            00000094 000094 000184 04   A 
2   0  4
  [ 2] .dynsym           DYNSYM          00000218 000218 0003a0 10   A 
3   e  4
  [ 3] .dynstr           STRTAB          000005b8 0005b8 0002d4 00   A 
0   0  1
  [ 4] .rel.dyn          REL             0000088c 00088c 0001d8 08   A 
2   0  4
  [ 5] .rel.plt          REL             00000a64 000a64 000090 08   A 
2   6  4
  [ 6] .plt              PROGBITS        00000af4 000af4 000130 04  AX 
0   0  4
  [ 7] .text             PROGBITS        00000c30 000c30 0037c4 00  AX 
0   0 16
  [ 8] .rodata           PROGBITS        000043f4 0043f4 00041e 01 AMS 
0   0  4
  [ 9] .data             PROGBITS        0000c814 004814 000010 00  WA 
0   0  4
  [10] .dynamic          DYNAMIC         0000c824 004824 0000a0 08  WA 
3   0  4
  [11] .got              PROGBITS        0000c8c4 0048c4 000130 04  WA 
0   0  4
  [12] .sbss             PROGBITS        0000c9f4 004a00 000000 00   W 
0   0  1
  [13] .bss              NOBITS          0000ca00 004a00 0000a4 00  WA 
0   0 32
  [14] .shstrtab         STRTAB          00000000 004a00 000060 00     
0   0  1
Key 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
  LOAD           0x000000 0x00000000 0x00000000 0x04812 0x04812 R E
0x8000
  LOAD           0x004814 0x0000c814 0x0000c814 0x001e0 0x00290 RW 
0x8000
  DYNAMIC        0x004824 0x0000c824 0x0000c824 0x000a0 0x000a0 RW  0x4

 Section to Segment mapping:
  Segment Sections...
   00     .hash .dynsym .dynstr .rel.dyn .rel.plt .plt .text .rodata 
   01     .data .dynamic .got .bss 
   02     .dynamic 

Dynamic segment at offset 0x4824 contains 16 entries:
  Tag        Type                         Name/Value
 0x0000000e (SONAME)                     Library soname:
[ld-uClibc.so.0]
 0x00000004 (HASH)                       0x94
 0x00000005 (STRTAB)                     0x5b8
 0x00000006 (SYMTAB)                     0x218
 0x0000000a (STRSZ)                      724 (bytes)
 0x0000000b (SYMENT)                     16 (bytes)
 0x00000003 (PLTGOT)                     0xc8c4
 0x00000002 (PLTRELSZ)                   144 (bytes)
 0x00000014 (PLTREL)                     REL
 0x00000017 (JMPREL)                     0xa64
 0x00000011 (REL)                        0x88c
 0x00000012 (RELSZ)                      472 (bytes)
 0x00000013 (RELENT)                     8 (bytes)
 0x00000016 (TEXTREL)                    0x0
 0x6ffffffa (RELCOUNT)                   43
 0x00000000 (NULL)                       0x0



-- 
~~~~~~~~~~~~~~~~~~~~~~~~
     David Meggy
     Engineering

Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
     www.techsol.ca

eMail: dmeggy at techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~




More information about the uClibc mailing list