diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2018-01-16 00:10:13 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2018-01-16 00:10:32 -0700 |
commit | c31759fb60284fa5c1f06eafa50869c480f0b703 (patch) | |
tree | df5bb290b0848fe7c09456bd8c05d1cebf330254 /hello/linker_script.ld | |
parent | 92c50db2b05818157d46e09f4dec4fa1e96f960b (diff) | |
download | stm32l4-c31759fb60284fa5c1f06eafa50869c480f0b703.tar.gz stm32l4-c31759fb60284fa5c1f06eafa50869c480f0b703.tar.bz2 stm32l4-c31759fb60284fa5c1f06eafa50869c480f0b703.zip |
add the hello code to bootstrap.
Diffstat (limited to 'hello/linker_script.ld')
-rw-r--r-- | hello/linker_script.ld | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/hello/linker_script.ld b/hello/linker_script.ld new file mode 100644 index 0000000..fe0c14b --- /dev/null +++ b/hello/linker_script.ld @@ -0,0 +1,14 @@ +MEMORY +{ + flash : org = 0x08000000, len = 256k +} + +SECTIONS +{ + /* This is where the code goes. */ + . = ORIGIN(flash); + .text : { + *(.vectors); /* All .vector sections go here. */ + *(.text); /* All .text sections go here. */ + } >flash +} |