--- gcc-5.3.0/libgcc/config/ia64/unwind-ia64.c.orig 2015-01-05 13:33:28.000000000 +0100 +++ gcc-5.3.0/libgcc/config/ia64/unwind-ia64.c 2025-01-15 19:05:32.455902891 +0100 @@ -237,6 +237,29 @@ #define MIN(X, Y) ((X) < (Y) ? (X) : (Y)) +/* Allow boostrapping without having glibc */ +void *memcpy(void *restrict dest, const void *restrict src, size_t n) +{ + return(NULL); +} + +void *malloc(size_t size) +{ + return(NULL); +} + +void *memset(void *s, int c, size_t n) +{ + return(NULL); +} +void abort(void) +{ +} +void free(void *ptr) +{ +} + + /* MASK is a bitmap describing the allocation state of emergency buffers, with bit set indicating free. Return >= 0 if allocation is successful; < 0 if failure. */ --- gcc-5.3.0/libgcc/config/ia64/fde-glibc.c.orig 2015-01-05 13:33:28.000000000 +0100 +++ gcc-5.3.0/libgcc/config/ia64/fde-glibc.c 2025-01-15 19:06:49.218277446 +0100 @@ -154,8 +154,10 @@ data.gp = gp; data.ret = NULL; + /* Allow bootstrapping if (dl_iterate_phdr (_Unwind_IteratePhdrCallback, &data) < 0) return NULL; + */ return data.ret; }