Re: reading elf section data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux