mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-23 18:18:36 +08:00
Merge branch 'feature/add_user_data_to_bin_header' into 'master'
feat: add user data to bin header See merge request sdk/ESP8266_RTOS_SDK!698
This commit is contained in:
@ -46,4 +46,7 @@
|
|||||||
// Forces read-only data into RTC memory.
|
// Forces read-only data into RTC memory.
|
||||||
#define RTC_RODATA_ATTR __attribute__((section(".rtc.rodata")))
|
#define RTC_RODATA_ATTR __attribute__((section(".rtc.rodata")))
|
||||||
|
|
||||||
|
// Forces to put some user defined data in the binary file header, the offset is 0x10.
|
||||||
|
#define USER_DATA_ATTR __attribute__((section(".user.data")))
|
||||||
|
|
||||||
#endif /* __ESP_ATTR_H__ */
|
#endif /* __ESP_ATTR_H__ */
|
||||||
|
@ -230,6 +230,7 @@ SECTIONS
|
|||||||
.irom0.text : ALIGN(4)
|
.irom0.text : ALIGN(4)
|
||||||
{
|
{
|
||||||
_irom0_text_start = ABSOLUTE(.);
|
_irom0_text_start = ABSOLUTE(.);
|
||||||
|
*(.user.data)
|
||||||
*(.rodata.* .rodata .irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
|
*(.rodata.* .rodata .irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
|
||||||
*(.literal.* .text.*)
|
*(.literal.* .text.*)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user