esp-idf/components/esp_rom/esp32/ld
Ivan Grokhotkov b7b9ea4361 newlib: add _RETARGETABLE_LOCKING support
This adds support for the retargetable locking implementation in
newlib 3. This feature will be enabled in the future toolchain builds.
With the present version of the toolchain, this code doesn't get used.

When _RETARGETABLE_LOCKING gets enabled, newlib locking implementation
will be modified as follows:

- Legacy ESP-specific _lock_xxx functions are preserved. This is done
  because ROM copies of newlib in ESP32 and ESP32-S2 rely on these
  functions through the function pointer table. Also there is some
  code in IDF which still uses these locking functions.

- New __retarget_lock_xxx functions are introduced. Newlib expects
  these functions to be provided by the system. These functions work
  pretty much the same way as the ESP-specific _lock_xxx functions,
  except one major difference: _lock_acquire receives the lock pointer
  by value, and as such doesn't support lazy initialization.

- Static locks used by newlib are now explicitly initialized at
  startup. Since it is unlikely that these static locks are used at
  the same time, all compatible locks are set to point to the same
  mutex. This saves a bit of RAM. Note that there are still many locks
  not initialized statically, in particular those inside FILE
  structures.
2020-12-29 16:18:04 +01:00
..
esp32.rom.api.ld esp_rom: added esp_rom_install_uart_printf 2020-12-11 11:45:10 +08:00
esp32.rom.eco3.ld feat/secure_boot_v2: Adding secure boot v2 support for ESP32-ECO3 2020-02-25 01:28:22 +05:30
esp32.rom.ld Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp32.rom.libgcc.ld esp32: Use FPU for floating point divide, power, complex multiplications 2019-05-29 10:14:31 +10:00
esp32.rom.newlib-data.ld newlib: add _RETARGETABLE_LOCKING support 2020-12-29 16:18:04 +01:00
esp32.rom.newlib-funcs.ld esp_rom: Fix esp32.rom.newlib-time.ld should includes all time ROM functions/data 2020-03-27 04:57:42 +00:00
esp32.rom.newlib-locale.ld esp_rom: don’t include locale functions when compiling with newlib 3 2019-04-10 13:52:30 +08:00
esp32.rom.newlib-nano.ld esp_rom: export newlib functions as strong symbols 2019-04-10 13:52:30 +08:00
esp32.rom.newlib-time.ld esp_rom: Fix esp32.rom.newlib-time.ld should includes all time ROM functions/data 2020-03-27 04:57:42 +00:00
esp32.rom.redefined.ld Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp32.rom.spiflash.ld Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp32.rom.syscalls.ld Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00