On 15 May 2016 at 16:43, Sam Habiel <sam.hab...@gmail.com> 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
> r...@releng1.nyi.freebsd.org:/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

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Elftoolchain-developers mailing list
Elftoolchain-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/elftoolchain-developers

Reply via email to