Re: [PATCH] Build i386's crti.o and crtn.o for x86_64-*-rtems*

2018-05-03 Thread Amaan Cheval
Hey! Just thought I'd bump this patch and see if anyone had a chance to look at it! Let me know if you have any questions or would like anything to be different (for eg. to split "x86_64-*-elf*" and "x86_64-*-rtems*" into their own case statements, instead of what I have here. On Tue, May 1, 2018

[PATCH] Build i386's crti.o and crtn.o for x86_64-*-rtems*

2018-05-01 Thread Amaan Cheval
Hi! The x86_64 RTEMS target doesn't currently have gcc build crti.o and crtn.o. This surfaces as undefined references to "_fini", which RTEMS references in its kernel: https://git.rtems.org/rtems/tree/cpukit/libcsupport/src/newlibc_exit.c#n39 Most other architectures deal with this by adding crt