aboutsummaryrefslogtreecommitdiff
path: root/openocd.cfg
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-12-12 15:52:29 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-12-12 15:52:29 -0700
commit529f90444c8f76513f1c5d571e4bc2f2563029a6 (patch)
treec30aa0abba405101f72b7ef99a332f1125678d4a /openocd.cfg
parentac25063e15d7aa645f7567b9bdb0726e5c332fd6 (diff)
downloadstm32l4-master.tar.gz
stm32l4-master.tar.bz2
stm32l4-master.zip
Fix the linker script to put the .got section in flash.HEADmaster
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 'openocd.cfg')
0 files changed, 0 insertions, 0 deletions