Use the proper "-Wl,--undefined=BootloaderAPI_JumpTable" linker command line parameter in the bootloaders to ensure that the API jump tables are not discarded, rather than the previous C volatile pointer hack (thanks to Opendous Inc.).
This commit is contained in:
parent
d619214854
commit
075538abb9
6 changed files with 2 additions and 16 deletions
|
@ -63,10 +63,6 @@ static bool RunBootloader = true;
|
|||
*/
|
||||
int main(void)
|
||||
{
|
||||
/* Force a reference to the API jump table to prevent the linker from discarding it */
|
||||
uint8_t* volatile Dummy = BootloaderAPI_JumpTable;
|
||||
(void)Dummy;
|
||||
|
||||
/* Setup hardware required for the bootloader */
|
||||
SetupHardware();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue