Skip to content

Commit 30b2a99

Browse files
committed
Remove mem_manager.o from libmain.a (#1630)
1 parent 4c75793 commit 30b2a99

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

cores/esp8266/heap.c

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ size_t ICACHE_RAM_ATTR xPortGetFreeHeapSize(void)
3737
return umm_free_heap_size();
3838
}
3939

40+
size_t ICACHE_RAM_ATTR xPortWantedSizeAlign(size_t size)
41+
{
42+
return (size + 3) & ~((size_t) 3);
43+
}
44+
4045
void system_show_malloc(void)
4146
{
4247
umm_info(NULL, 1);

tools/sdk/lib/README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
After updating SDK libraries to a new version, do the following changes.
44

55

6-
1. Weaken symbols from mem_manager.o to use custom heap implementation
6+
1. Remove mem_manager.o from libmain.a to use custom heap implementation
77

88
```bash
9-
xtensa-lx106-elf-ar -x libmain.a mem_manager.o
10-
xtensa-lx106-elf-objcopy --weaken mem_manager.o
11-
xtensa-lx106-elf-ar -r libmain.a mem_manager.o
12-
rm mem_manager.o
9+
xtensa-lx106-elf-ar -d libmain.a mem_manager.o
1310
```

tools/sdk/lib/libmain.a

-8.18 KB
Binary file not shown.

0 commit comments

Comments
 (0)