esp-idf/components/newlib/esp32-spiram-rom-functions-c.lf

172 lines
5.4 KiB
Plaintext
Raw Normal View History

# If the Newlib functions in ROM aren't used (eg because the external SPI RAM workaround is active), these functions will
# be linked into the application directly instead. Normally, they would end up in flash, which is undesirable because esp-idf
# and/or applications may assume that because these functions normally are in ROM, they are accessible even when flash is
# inaccessible. To work around this, this ld fragment places these functions in RAM instead. If the ROM functions are used,
# these defines do nothing, so they can still be included in that situation.
#
#
# Note: the only difference between esp32-spiram-rom-functions-c.lf
# and esp32-spiram-rom-functions-psram-workaround.lf is the archive name.
[mapping:libc]
archive:
if NEWLIB_NANO_FORMAT = y:
libc_nano.a
else:
libc.a
entries:
if SPIRAM_CACHE_WORKAROUND = y:
# The following libs are either used in a lot of places or in critical
# code. (such as panic or abort)
# Thus, they shall always be placed in IRAM.
libc_a-itoa (noflash)
libc_a-memcmp (noflash)
libc_a-memcpy (noflash)
libc_a-memset (noflash)
libc_a-strcat (noflash)
libc_a-strcmp (noflash)
libc_a-strlen (noflash)
if SPIRAM_CACHE_LIBJMP_IN_IRAM = y:
libc_a-longjmp (noflash)
libc_a-setjmp (noflash)
if SPIRAM_CACHE_LIBMATH_IN_IRAM = y:
libc_a-abs (noflash)
libc_a-div (noflash)
libc_a-labs (noflash)
libc_a-ldiv (noflash)
libc_a-quorem (noflash)
libc_a-s_fpclassify (noflash)
libc_a-sf_nan (noflash)
if SPIRAM_CACHE_LIBNUMPARSER_IN_IRAM = y:
libc_a-utoa (noflash)
libc_a-atoi (noflash)
libc_a-atol (noflash)
libc_a-strtol (noflash)
libc_a-strtoul (noflash)
if SPIRAM_CACHE_LIBIO_IN_IRAM = y:
libc_a-wcrtomb (noflash)
libc_a-fvwrite (noflash)
libc_a-wbuf (noflash)
libc_a-wsetup (noflash)
libc_a-fputwc (noflash)
libc_a-wctomb_r (noflash)
libc_a-ungetc (noflash)
libc_a-makebuf (noflash)
libc_a-fflush (noflash)
libc_a-refill (noflash)
libc_a-sccl (noflash)
if SPIRAM_CACHE_LIBTIME_IN_IRAM = y:
libc_a-asctime (noflash)
libc_a-asctime_r (noflash)
libc_a-ctime (noflash)
libc_a-ctime_r (noflash)
libc_a-lcltime (noflash)
libc_a-lcltime_r (noflash)
libc_a-gmtime (noflash)
libc_a-gmtime_r (noflash)
libc_a-strftime (noflash)
libc_a-mktime (noflash)
libc_a-tzset_r (noflash)
libc_a-tzset (noflash)
libc_a-time (noflash)
libc_a-gettzinfo (noflash)
libc_a-systimes (noflash)
libc_a-month_lengths (noflash)
libc_a-timelocal (noflash)
libc_a-tzvars (noflash)
libc_a-tzlock (noflash)
libc_a-tzcalc_limits (noflash)
libc_a-strptime (noflash)
if SPIRAM_CACHE_LIBCHAR_IN_IRAM = y:
libc_a-ctype_ (noflash)
libc_a-toupper (noflash)
libc_a-tolower (noflash)
libc_a-toascii (noflash)
libc_a-strupr (noflash)
libc_a-bzero (noflash)
libc_a-isalnum (noflash)
libc_a-isalpha (noflash)
libc_a-isascii (noflash)
libc_a-isblank (noflash)
libc_a-iscntrl (noflash)
libc_a-isdigit (noflash)
libc_a-isgraph (noflash)
libc_a-islower (noflash)
libc_a-isprint (noflash)
libc_a-ispunct (noflash)
libc_a-isspace (noflash)
libc_a-isupper (noflash)
if SPIRAM_CACHE_LIBMEM_IN_IRAM = y:
libc_a-memccpy (noflash)
libc_a-memchr (noflash)
libc_a-memmove (noflash)
libc_a-memrchr (noflash)
if SPIRAM_CACHE_LIBSTR_IN_IRAM = y:
libc_a-strcasecmp (noflash)
libc_a-strcasestr (noflash)
libc_a-strchr (noflash)
libc_a-strcoll (noflash)
libc_a-strcpy (noflash)
libc_a-strcspn (noflash)
libc_a-strdup (noflash)
libc_a-strdup_r (noflash)
libc_a-strlcat (noflash)
libc_a-strlcpy (noflash)
libc_a-strlwr (noflash)
libc_a-strncasecmp (noflash)
libc_a-strncat (noflash)
libc_a-strncmp (noflash)
libc_a-strncpy (noflash)
libc_a-strndup (noflash)
libc_a-strndup_r (noflash)
libc_a-strnlen (noflash)
libc_a-strrchr (noflash)
libc_a-strsep (noflash)
libc_a-strspn (noflash)
libc_a-strstr (noflash)
libc_a-strtok_r (noflash)
libc_a-strupr (noflash)
if SPIRAM_CACHE_LIBRAND_IN_IRAM = y:
libc_a-srand (noflash)
libc_a-rand (noflash)
libc_a-rand_r (noflash)
if SPIRAM_CACHE_LIBENV_IN_IRAM = y:
libc_a-environ (noflash)
libc_a-envlock (noflash)
libc_a-getenv_r (noflash)
if SPIRAM_CACHE_LIBFILE_IN_IRAM = y:
lock (noflash)
isatty (noflash)
creat (noflash)
libc_a-fclose (noflash)
libc_a-open (noflash)
libc_a-close (noflash)
libc_a-creat (noflash)
libc_a-read (noflash)
libc_a-rshift (noflash)
libc_a-sbrk (noflash)
libc_a-stdio (noflash)
libc_a-syssbrk (noflash)
libc_a-sysclose (noflash)
libc_a-sysopen (noflash)
libc_a-sysread (noflash)
libc_a-syswrite (noflash)
libc_a-impure (noflash)
libc_a-fwalk (noflash)
libc_a-findfp (noflash)
if SPIRAM_CACHE_LIBMISC_IN_IRAM = y:
libc_a-raise (noflash)
libc_a-system (noflash)