Hi Breixo,

Breixo López García wrote:
> When I run in the executable readelf -d It´s obtained:
>
> ~/workspace/eclipse/myHelloWorld3/Debug$ readelf -d myHelloWorld3
>
> Dynamic section at offset 0x448 contains 24 entries:
>   Tag        Type                         Name/Value
>  0x00000001 (NEEDED)                     Shared library: [libc.so.6]
>  0x0000000c (INIT)                       0x8274
>  0x0000000d (FINI)                       0x83f8
>  0x00000019 (INIT_ARRAY)                 0x1043c
>  0x0000001b (INIT_ARRAYSZ)               4 (bytes)
>  0x0000001a (FINI_ARRAY)                 0x10440
>  0x0000001c (FINI_ARRAYSZ)               4 (bytes)
>  0x00000004 (HASH)                       0x8168
>  0x00000005 (STRTAB)                     0x81e0
>  0x00000006 (SYMTAB)                     0x8190
>  0x0000000a (STRSZ)                      65 (bytes)
>  0x0000000b (SYMENT)                     16 (bytes)
>  0x00000015 (DEBUG)                      0x0
>  0x00000003 (PLTGOT)                     0x10530
>  0x00000002 (PLTRELSZ)                   32 (bytes)
>  0x00000014 (PLTREL)                     REL
>  0x00000017 (JMPREL)                     0x8254
>  0x00000011 (REL)                        0x824c
>  0x00000012 (RELSZ)                      8 (bytes)
>  0x00000013 (RELENT)                     8 (bytes)
>  0x6ffffffe (VERNEED)                    0x822c
>  0x6fffffff (VERNEEDNUM)                 1
>  0x6ffffff0 (VERSYM)                     0x8222
>  0x00000000 (NULL)                       0x0
>
> That is correct? How i can see if there are something that It is not
> expected... Because I don´t get used to work with this tool.

The 'NEEDED' keyword will list all required shared libraries. If one of the 
listed libs do not exist at run-time, you also see the confusing "No such 
file or directory" message.

Hmm, okay. Can you start your 'myHelloWorld3' manually without 'gdbserver'?

Does 'readelf -A myHelloWorld3' show the correct architecture?

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

Reply via email to