1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

sdk: rename hostname and default_hostname symbols (#1281)

hostname -> wifi_station_hostname
default_hostname -> wifi_station_default_hostname
This commit is contained in:
Ivan Grokhotkov 2017-12-31 22:52:00 +08:00
parent 9183366734
commit 8edeac0cf4
2 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,17 @@ xtensa-lx106-elf-ar -d libmain.a mem_manager.o
xtensa-lx106-elf-ar -d libmain.a time.o
```
Rename `hostname` and `default_hostname` symbols:
```bash
xtensa-lx106-elf-ar x libmain.a eagle_lwip_if.o user_interface.o
xtensa-lx106-elf-objcopy --redefine-sym hostname=wifi_station_hostname user_interface.o
xtensa-lx106-elf-objcopy --redefine-sym hostname=wifi_station_hostname eagle_lwip_if.o
xtensa-lx106-elf-objcopy --redefine-sym default_hostname=wifi_station_default_hostname user_interface.o
xtensa-lx106-elf-objcopy --redefine-sym default_hostname=wifi_station_default_hostname eagle_lwip_if.o
xtensa-lx106-elf-ar r libmain.a eagle_lwip_if.o user_interface.o
```
## Updating libstdc++
After building gcc using crosstool-NG, get compiled libstdc++ and remove some objects:

Binary file not shown.