1# If the Newlib functions in ROM aren't used (eg because the external SPI RAM workaround is active), these functions will 2# be linked into the application directly instead. Normally, they would end up in flash, which is undesirable because esp-idf 3# and/or applications may assume that because these functions normally are in ROM, they are accessible even when flash is 4# inaccessible. To work around this, this ld fragment places these functions in RAM instead. If the ROM functions are used, 5# these defines do nothing, so they can still be included in that situation. 6# 7# 8# Note: the only difference between esp32-spiram-rom-functions-c.lf 9# and esp32-spiram-rom-functions-psram-workaround.lf is the archive name. 10 11[mapping:libc] 12archive: 13 if NEWLIB_NANO_FORMAT = y: 14 libc_nano.a 15 else: 16 libc.a 17entries: 18 if SPIRAM_CACHE_WORKAROUND = y: 19 lib_a-utoa (noflash) 20 lib_a-longjmp (noflash) 21 lib_a-setjmp (noflash) 22 lib_a-abs (noflash) 23 lib_a-div (noflash) 24 lib_a-labs (noflash) 25 lib_a-ldiv (noflash) 26 lib_a-quorem (noflash) 27 lib_a-utoa (noflash) 28 lib_a-itoa (noflash) 29 lib_a-atoi (noflash) 30 lib_a-atol (noflash) 31 lib_a-strtol (noflash) 32 lib_a-strtoul (noflash) 33 lib_a-wcrtomb (noflash) 34 lib_a-fvwrite (noflash) 35 lib_a-wbuf (noflash) 36 lib_a-wsetup (noflash) 37 lib_a-fputwc (noflash) 38 lib_a-wctomb_r (noflash) 39 lib_a-ungetc (noflash) 40 lib_a-makebuf (noflash) 41 lib_a-fflush (noflash) 42 lib_a-refill (noflash) 43 lib_a-s_fpclassify (noflash) 44 lib_a-asctime (noflash) 45 lib_a-ctime (noflash) 46 lib_a-ctime_r (noflash) 47 lib_a-lcltime (noflash) 48 lib_a-lcltime_r (noflash) 49 lib_a-gmtime (noflash) 50 lib_a-gmtime_r (noflash) 51 lib_a-strftime (noflash) 52 lib_a-mktime (noflash) 53 lib_a-syswrite (noflash) 54 lib_a-tzset_r (noflash) 55 lib_a-tzset (noflash) 56 lib_a-toupper (noflash) 57 lib_a-tolower (noflash) 58 lib_a-toascii (noflash) 59 lib_a-systimes (noflash) 60 lib_a-time (noflash) 61 lib_a-gettzinfo (noflash) 62 lib_a-strupr (noflash) 63 lib_a-asctime_r (noflash) 64 lib_a-bzero (noflash) 65 lib_a-close (noflash) 66 lib_a-creat (noflash) 67 lib_a-environ (noflash) 68 lib_a-fclose (noflash) 69 lib_a-isalnum (noflash) 70 lib_a-isalpha (noflash) 71 lib_a-isascii (noflash) 72 lib_a-isblank (noflash) 73 lib_a-iscntrl (noflash) 74 lib_a-isdigit (noflash) 75 lib_a-isgraph (noflash) 76 lib_a-islower (noflash) 77 lib_a-isprint (noflash) 78 lib_a-ispunct (noflash) 79 lib_a-isspace (noflash) 80 lib_a-isupper (noflash) 81 lib_a-memccpy (noflash) 82 lib_a-memchr (noflash) 83 lib_a-memcmp (noflash) 84 lib_a-memcpy (noflash) 85 lib_a-memmove (noflash) 86 lib_a-memrchr (noflash) 87 lib_a-memset (noflash) 88 lib_a-open (noflash) 89 lib_a-rand (noflash) 90 lib_a-rand_r (noflash) 91 lib_a-read (noflash) 92 lib_a-rshift (noflash) 93 lib_a-sbrk (noflash) 94 lib_a-srand (noflash) 95 lib_a-strcasecmp (noflash) 96 lib_a-strcasestr (noflash) 97 lib_a-strcat (noflash) 98 lib_a-strchr (noflash) 99 lib_a-strcmp (noflash) 100 lib_a-strcoll (noflash) 101 lib_a-strcpy (noflash) 102 lib_a-strcspn (noflash) 103 lib_a-strdup (noflash) 104 lib_a-strlcat (noflash) 105 lib_a-strlcpy (noflash) 106 lib_a-strlen (noflash) 107 lib_a-strlwr (noflash) 108 lib_a-strncasecmp (noflash) 109 lib_a-strncat (noflash) 110 lib_a-strncmp (noflash) 111 lib_a-strncpy (noflash) 112 lib_a-strndup (noflash) 113 lib_a-strnlen (noflash) 114 lib_a-strrchr (noflash) 115 lib_a-strsep (noflash) 116 lib_a-strspn (noflash) 117 lib_a-strstr (noflash) 118 lib_a-strtok_r (noflash) 119 lib_a-strupr (noflash) 120 lib_a-stdio (noflash) 121 lib_a-syssbrk (noflash) 122 lib_a-sysclose (noflash) 123 lib_a-sysopen (noflash) 124 creat (noflash) 125 lib_a-sysread (noflash) 126 lib_a-syswrite (noflash) 127 lib_a-impure (noflash) 128 lib_a-tzvars (noflash) 129 lib_a-sf_nan (noflash) 130 lib_a-tzcalc_limits (noflash) 131 lib_a-month_lengths (noflash) 132 lib_a-timelocal (noflash) 133 lib_a-findfp (noflash) 134 lock (noflash) 135 lib_a-getenv_r (noflash) 136 isatty (noflash) 137 lib_a-fwalk (noflash) 138 lib_a-getenv_r (noflash) 139 lib_a-tzlock (noflash) 140 lib_a-ctype_ (noflash) 141 lib_a-sccl (noflash) 142 lib_a-strptime (noflash) 143 lib_a-envlock (noflash) 144 lib_a-raise (noflash) 145 lib_a-strdup_r (noflash) 146 lib_a-system (noflash) 147 lib_a-strndup_r (noflash) 148