0003-memcpy-def.patch 733 B

1234567891011121314151617181920212223242526
  1. Provide a compatibility alias __memcpy
  2. For some reason, libelf uses the internal glibc alias __memcpy, which
  3. doesn't exist in uClibc. Add a manual alias so that the build can
  4. proceed with uClibc.
  5. Based on the former patch by Thomas Petazzoni.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
  8. diff -rup a/libelf/libelf.h b/libelf/libelf.h
  9. --- a/libelf/libelf.h 2014-08-27 10:25:17.000000000 +0100
  10. +++ b/libelf/libelf.h 2014-11-07 15:13:08.743508221 +0000
  11. @@ -34,6 +34,11 @@
  12. /* Get the ELF types. */
  13. #include <elf.h>
  14. +#ifndef _LIBC
  15. +#ifndef __mempcpy
  16. +#define __mempcpy mempcpy
  17. +#endif
  18. +#endif
  19. /* Known translation types. */
  20. typedef enum