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

@ -47,7 +47,7 @@
#include "netif/etharp.h"
/* declared in libnet80211.a */
int8_t ieee80211_output_pbuf(struct netif *ifp, struct pbuf* pb);
int8_t sdk_ieee80211_output_pbuf(struct netif *ifp, struct pbuf* pb);
static err_t
low_level_output(struct netif *netif, struct pbuf *p)
@ -55,7 +55,7 @@ low_level_output(struct netif *netif, struct pbuf *p)
struct pbuf *q;
for(q = p; q != NULL; q = q->next) {
ieee80211_output_pbuf(netif, q);
sdk_ieee80211_output_pbuf(netif, q);
}
LINK_STATS_INC(link.xmit);