Preprocess all binary SDK symbols to add an sdk_ prefix

* This fixes the problem of axTLS symbols hmac_md5/hmac_sha1 having same
  name as symbols in libwpa (which have incompatible signatures)

* Also allows for easier identification and piece-by-piece removal of
  binary functions.

* Some libc symbols are not renamed, list is in lib/symbols_norename.txt
This commit is contained in:
Angus Gratton 2015-05-30 19:11:04 +10:00
parent 05019cb0ee
commit e743d03a78
19 changed files with 220 additions and 103 deletions

View file

@ -6,14 +6,14 @@
#ifndef __ESP_SYSTEM_H__
#define __ESP_SYSTEM_H__
enum rst_reason {
enum sdk_rst_reason {
DEFAULT_RST = 0,
WDT_RST = 1,
EXCEPTION_RST = 2,
SOFT_RST = 3
};
struct rst_info{
struct sdk_rst_info{
uint32_t reason;
uint32_t exccause;
uint32_t epc1;
@ -24,26 +24,26 @@ struct rst_info{
uint32_t rtn_addr;
};
struct rst_info* system_get_rst_info(void);
struct rst_info* sdk_system_get_rst_info(void);
const char* system_get_sdk_version(void);
const char* sdk_system_get_sdk_version(void);
void system_restore(void);
void system_restart(void);
void system_deep_sleep(uint32_t time_in_us);
void sdk_system_restore(void);
void sdk_system_restart(void);
void sdk_system_deep_sleep(uint32_t time_in_us);
uint32_t system_get_time(void);
uint32_t sdk_system_get_time(void);
void system_print_meminfo(void);
uint32_t system_get_free_heap_size(void);
uint32_t system_get_chip_id(void);
void sdk_system_print_meminfo(void);
uint32_t sdk_system_get_free_heap_size(void);
uint32_t sdk_system_get_chip_id(void);
uint32_t system_rtc_clock_cali_proc(void);
uint32_t system_get_rtc_time(void);
uint32_t sdk_system_rtc_clock_cali_proc(void);
uint32_t sdk_system_get_rtc_time(void);
bool system_rtc_mem_read(uint8_t src, void *dst, uint16_t n);
bool system_rtc_mem_write(uint8_t dst, const void *src, uint16_t n);
bool sdk_system_rtc_mem_read(uint8_t src, void *dst, uint16_t n);
bool sdk_system_rtc_mem_write(uint8_t dst, const void *src, uint16_t n);
void system_uart_swap(void);
void sdk_system_uart_swap(void);
#endif