Accessing String Table Indexes for .rodata

2018-08-20 Thread Henry C
Hi, I have a sample code like this: #include void myprintf(const char* ptr) { printf("%p\n", ptr); } int main() { myprintf("hello world"); myprintf("\0\0"); myprintf("ab\0cde"); } I would like to access the .rodata by using elf.h. Someone told me this is the ri

Re: [PATCH] libelf/elf_end.c: check data_list.data.d.d_buf before free it

2018-08-20 Thread Robert Yang
On 08/17/2018 06:10 PM, Mark Wielaard wrote: Hi Robert, [I don't have very good internet connectivity so cannot easily get all the bits and sources to replicate/inspect. So apologies if I am misinterpreting something.] On Fri, Aug 17, 2018 at 04:25:07PM +0800, Robert Yang wrote: On 08/1