From 3b3f5289e322b7a9f7c57ca03a871580019d66c1 Mon Sep 17 00:00:00 2001 From: Brad Campbell Date: Mon, 11 Jan 2021 13:26:38 -0500 Subject: [PATCH] fix addresses linker symbols --- bootloader/src/bootloader.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bootloader/src/bootloader.rs b/bootloader/src/bootloader.rs index 07992f6..1135dcb 100644 --- a/bootloader/src/bootloader.rs +++ b/bootloader/src/bootloader.rs @@ -23,8 +23,8 @@ const UART_RECEIVE_TIMEOUT: u8 = 100; extern "C" { static _flags_address: u8; static _attributes_address: u8; - static _textstart: u8; - static _erelocate: u8; + static _stext: u8; + static _etext: u8; } // Bootloader constants @@ -150,8 +150,8 @@ impl<'a, U: hil::uart::UartAdvanced<'a> + 'a, F: hil::flash::Flash + 'a> Bootloa state: Cell::new(State::Idle), flags_address: unsafe { (&_flags_address as *const u8) as usize }, attributes_address: unsafe { (&_attributes_address as *const u8) as usize }, - bootloader_address: unsafe { (&_textstart as *const u8) as u32 }, - bootloader_end_address: unsafe { (&_erelocate as *const u8) as u32 }, + bootloader_address: unsafe { (&_stext as *const u8) as u32 }, + bootloader_end_address: unsafe { (&_etext as *const u8) as u32 }, } }