diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2022-12-12 15:52:29 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2022-12-12 15:52:29 -0700 |
commit | 529f90444c8f76513f1c5d571e4bc2f2563029a6 (patch) | |
tree | c30aa0abba405101f72b7ef99a332f1125678d4a /tests/test_memory.c | |
parent | ac25063e15d7aa645f7567b9bdb0726e5c332fd6 (diff) | |
download | stm32l4-master.tar.gz stm32l4-master.tar.bz2 stm32l4-master.zip |
The .got section contains global variables an offsets. Specifically it
contains the linker script variables. The linker will automatically put
this section .data, which is not what we want because those values will
not be initialized.
So we put the .got section in flash so the value is initialized.
Without this, there is bizarre behavior on some compilers where linker
variables will be undefined.
Diffstat (limited to 'tests/test_memory.c')
0 files changed, 0 insertions, 0 deletions