malloc_free.c 454 B

1234567891011121314
  1. /* Used for removing _malloc and _free in the exports.
  2. *
  3. * This will generate a warning but it is worth not having to deal with the
  4. * extra memory mangement (dead functions and pointers) that are never going
  5. * to be used.
  6. */
  7. /* Hack, such that mconf.h is not added dynamically */
  8. /* #include "mconf.h" */
  9. void *__attribute__((noinline)) malloc(unsigned long size) { return (void *)0; }
  10. void __attribute__((noinline)) free(void *ptr) { return; }