Re: libelf question

2007-06-25 Thread Dag-Erling Smørgrav
Angus Barrow [EMAIL PROTECTED] writes: 30 time_t timet=arh-ar_date; (gdb) n 31 strftime(timestring, sizeof(timestring), %b %e %H:%M %Y, gmtime(timet)); (gdb) n ... (gdb) print timet $1 = -1515870811 (gdb) p/x -1515870811 $1 = 0xa5a5a5a5 from malloc(3): J Each byte of new

libelf question

2007-06-24 Thread Angus Barrow
Hi there, I'm trying to develop a BSD licensed version of the ar utility using the new libelf library as this seems to be listed on the project ideas page but doesn't seem to be being worked on. I've started off simply trying to get a toc printed for the archive but for some reason the

Re: libelf question

2007-06-24 Thread Tim Kientzle
Angus Barrow wrote: I'm trying to develop a BSD licensed version of the ar utility using the new libelf library ... The time shown in arh-ar_date (this is the struct that the libelf library provides for each entry in the ar archive) seems to have a negative value (using the GNU ar the