From: Ed M. <em...@fr...> - 2016-05-15 23:47:47
|
On 15 May 2016 at 16:43, Sam Habiel <sam...@gm...> wrote: > First time on list, > > Failure here: https://github.com/shabiel/fis-gtm/blob/freebsd/sr_x86_64/obj_filesp.c#L322 > > I added a line after it: > FPRINTF(stderr, elf_errmsg(elf_errno())); > > And this line says: Invalid data buffer descriptor. > > Ports tree libelf doesn't have this problem. > > root@:~/repos/fis-gtm # uname -a > FreeBSD 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 > 02:10:02 UTC 2016 > ro...@re...:/usr/obj/usr/src/sys/GENERIC amd64 To confirm, this is the libelf in the FreeBSD source tree, not the upstream elftoolchain version? If so, can you test the upstream version? I don't anticipate any differences, but it will be a better base for experimentation and debugging. I see three LIBELF_SET_ERROR(DATA, 0); in libelf/elf_update.c. If you can run the application under a debugger I would set a breakpoint on them and see which case returned the error, which should give a suggestion on next steps. -Ed |