Removed invalid flush asm instruction
Added _fstat_r and _isatty_r to llvm.used as they are defined by RTEMS and used by newlib which is linked after RTEMS.
Removed -disable-internalize when linking executables, otherwise library symbols are defined multiple times