I applied both patches. I get the following output: ./ltrace: Multiple data chunks in .hash from "/system/bin/ping" Sorry for the wrong output earlier. I copied the changes in the wrong place by mistake.
On Tue, May 17, 2011 at 4:04 PM, <[email protected]> wrote: > DUSHYANT ARORA <[email protected]> writes: > > > I get the same error as before.ż. > > ./ltrace: Couldn't get .hash data from "/system/bin/ping" > > You mean with the patch? That means it's failing to get the data in the > first place, i.e. that elf_getdata fails. The patch that I'm attaching > now adds more detail to that error message. It should be applied on top > of that previous patch. It _might_ help in diagnosing the problem, but, > honestly, "something's broken" is about the closest that we are likely > to get with this. > > Thanks, > PM > > diff --git a/ltrace-elf.c b/ltrace-elf.c > index 7676f4b..a2fa090 100644 > --- a/ltrace-elf.c > +++ b/ltrace-elf.c > @@ -317,8 +317,8 @@ do_init_elf(struct ltelf *lte, const char *filename) { > data = elf_getdata(scn, NULL); > if (data == NULL) > error(EXIT_FAILURE, 0, > - "Couldn't get .hash data from > \"%s\"", > - filename); > + "Couldn't get .hash data from \"%s\": > %s", > + filename, elf_errmsg(-1)); > > if (elf_getdata(scn, data) != NULL > || data->d_off || data->d_size != shdr.sh_size) > >
_______________________________________________ Ltrace-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/ltrace-devel
