Re: reading elf section data
Gery <[email protected]>
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <[email protected]> |
Glynn Clements wrote:
> Gery wrote:
>
>
>> How to read in human format data from elf section?
>>
>
> Can you be more specific? What kind of data? What format?
>
> objdump and readelf can provide a lot of information about ELF files,
> but they can't decode every type of data which could conceivably be
> stored in an ELF file.
>
>
Ok.
i put some structure with gcc attribute to special section named ".my_sec"
The structure is like
struct abc {
char *a;
char *b;
};
and global variable is
struct abc klm = { "this is 1st string", "this is 2nd string" };
Which utility can show me just the data of that section?