Skip to content

Commit

Permalink
[#1] - check for PIC in Reset_Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Feb 20, 2022
1 parent 26bde9f commit 249575f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/exception-handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ extern "C"
void __attribute__ ((section (".after_vectors"), noreturn,naked))
Reset_Handler (void)
{
#if defined(__pic__)
#error "PIC not implemented"
// TODO: add assembly code to initialise R9 and to copy .got tables,
// otherwise accesses to linker script definitions will result in
// wrong addresses.
#endif

// __disable_irq ();

// Fill the main stack with a pattern, to detect usage and underflow.
Expand Down

0 comments on commit 249575f

Please sign in to comment.