aboutsummaryrefslogtreecommitdiff
path: root/system-clock/linker
diff options
context:
space:
mode:
Diffstat (limited to 'system-clock/linker')
-rw-r--r--system-clock/linker/linker_script.ld14
-rw-r--r--system-clock/linker/main.map137
2 files changed, 151 insertions, 0 deletions
diff --git a/system-clock/linker/linker_script.ld b/system-clock/linker/linker_script.ld
new file mode 100644
index 0000000..fe0c14b
--- /dev/null
+++ b/system-clock/linker/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
+}
diff --git a/system-clock/linker/main.map b/system-clock/linker/main.map
new file mode 100644
index 0000000..a201354
--- /dev/null
+++ b/system-clock/linker/main.map
@@ -0,0 +1,137 @@
+
+Memory Configuration
+
+Name Origin Length Attributes
+flash 0x0000000008000000 0x0000000000040000
+*default* 0x0000000000000000 0xffffffffffffffff
+
+Linker script and memory map
+
+ 0x0000000008000000 . = ORIGIN (flash)
+
+.text 0x0000000008000000 0x46c
+ *(.vectors)
+ .vectors 0x0000000008000000 0x18c _arm-unknown-eabi-_obs/main.o
+ 0x0000000008000000 vectors
+ *(.text)
+ .text 0x000000000800018c 0x11c _arm-unknown-eabi-_obs/clock.o
+ 0x000000000800018c set_sys_clock
+ .text 0x00000000080002a8 0x7c _arm-unknown-eabi-_obs/gpio.o
+ 0x00000000080002a8 set_gpio_pin_mode
+ 0x00000000080002c4 set_gpio_pin_output
+ 0x00000000080002de set_gpio_output_pin
+ 0x000000000800030a enable_gpio
+ .text 0x0000000008000324 0x148 _arm-unknown-eabi-_obs/main.o
+ 0x0000000008000324 delay
+ 0x0000000008000332 main
+ 0x0000000008000404 spin
+LOAD _arm-unknown-eabi-_obs/clock.o
+LOAD _arm-unknown-eabi-_obs/gpio.o
+LOAD _arm-unknown-eabi-_obs/main.o
+OUTPUT(_arm-unknown-eabi-_obs/main.elf elf32-littlearm)
+
+.data 0x000000000800046c 0x0
+ .data 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/clock.o
+ .data 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/gpio.o
+ .data 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/main.o
+
+.igot.plt 0x000000000800046c 0x0
+ .igot.plt 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/clock.o
+
+.glue_7 0x000000000800046c 0x0
+ .glue_7 0x000000000800046c 0x0 linker stubs
+
+.glue_7t 0x000000000800046c 0x0
+ .glue_7t 0x000000000800046c 0x0 linker stubs
+
+.vfp11_veneer 0x000000000800046c 0x0
+ .vfp11_veneer 0x000000000800046c 0x0 linker stubs
+
+.v4_bx 0x000000000800046c 0x0
+ .v4_bx 0x000000000800046c 0x0 linker stubs
+
+.iplt 0x000000000800046c 0x0
+ .iplt 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/clock.o
+
+.rel.dyn 0x000000000800046c 0x0
+ .rel.iplt 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/clock.o
+
+.bss 0x000000000800046c 0x0
+ .bss 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/clock.o
+ .bss 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/gpio.o
+ .bss 0x000000000800046c 0x0 _arm-unknown-eabi-_obs/main.o
+
+.debug_info 0x0000000000000000 0xb2c
+ .debug_info 0x0000000000000000 0x25b _arm-unknown-eabi-_obs/clock.o
+ .debug_info 0x000000000000025b 0x30e _arm-unknown-eabi-_obs/gpio.o
+ .debug_info 0x0000000000000569 0x5c3 _arm-unknown-eabi-_obs/main.o
+
+.debug_abbrev 0x0000000000000000 0x394
+ .debug_abbrev 0x0000000000000000 0xd0 _arm-unknown-eabi-_obs/clock.o
+ .debug_abbrev 0x00000000000000d0 0x140 _arm-unknown-eabi-_obs/gpio.o
+ .debug_abbrev 0x0000000000000210 0x184 _arm-unknown-eabi-_obs/main.o
+
+.debug_loc 0x0000000000000000 0x1f4
+ .debug_loc 0x0000000000000000 0x8a _arm-unknown-eabi-_obs/clock.o
+ .debug_loc 0x000000000000008a 0x105 _arm-unknown-eabi-_obs/gpio.o
+ .debug_loc 0x000000000000018f 0x65 _arm-unknown-eabi-_obs/main.o
+
+.debug_aranges 0x0000000000000000 0x60
+ .debug_aranges
+ 0x0000000000000000 0x20 _arm-unknown-eabi-_obs/clock.o
+ .debug_aranges
+ 0x0000000000000020 0x20 _arm-unknown-eabi-_obs/gpio.o
+ .debug_aranges
+ 0x0000000000000040 0x20 _arm-unknown-eabi-_obs/main.o
+
+.debug_ranges 0x0000000000000000 0x20
+ .debug_ranges 0x0000000000000000 0x20 _arm-unknown-eabi-_obs/clock.o
+
+.debug_line 0x0000000000000000 0x427
+ .debug_line 0x0000000000000000 0x169 _arm-unknown-eabi-_obs/clock.o
+ .debug_line 0x0000000000000169 0x10f _arm-unknown-eabi-_obs/gpio.o
+ .debug_line 0x0000000000000278 0x1af _arm-unknown-eabi-_obs/main.o
+
+.debug_str 0x0000000000000000 0x398
+ .debug_str 0x0000000000000000 0x17a _arm-unknown-eabi-_obs/clock.o
+ 0x1c0 (size before relaxing)
+ .debug_str 0x000000000000017a 0x1e5 _arm-unknown-eabi-_obs/gpio.o
+ 0x2d3 (size before relaxing)
+ .debug_str 0x000000000000035f 0x39 _arm-unknown-eabi-_obs/main.o
+ 0x27e (size before relaxing)
+
+.comment 0x0000000000000000 0x3c
+ .comment 0x0000000000000000 0x3c _arm-unknown-eabi-_obs/clock.o
+ 0x3d (size before relaxing)
+ .comment 0x000000000000003c 0x3d _arm-unknown-eabi-_obs/gpio.o
+ .comment 0x000000000000003c 0x3d _arm-unknown-eabi-_obs/main.o
+
+.ARM.attributes
+ 0x0000000000000000 0x33
+ .ARM.attributes
+ 0x0000000000000000 0x33 _arm-unknown-eabi-_obs/clock.o
+ .ARM.attributes
+ 0x0000000000000033 0x33 _arm-unknown-eabi-_obs/gpio.o
+ .ARM.attributes
+ 0x0000000000000066 0x33 _arm-unknown-eabi-_obs/main.o
+
+.debug_frame 0x0000000000000000 0xf8
+ .debug_frame 0x0000000000000000 0x20 _arm-unknown-eabi-_obs/clock.o
+ .debug_frame 0x0000000000000020 0x74 _arm-unknown-eabi-_obs/gpio.o
+ .debug_frame 0x0000000000000094 0x64 _arm-unknown-eabi-_obs/main.o
+
+Cross Reference Table
+
+Symbol File
+delay _arm-unknown-eabi-_obs/main.o
+enable_gpio _arm-unknown-eabi-_obs/gpio.o
+ _arm-unknown-eabi-_obs/main.o
+main _arm-unknown-eabi-_obs/main.o
+set_gpio_output_pin _arm-unknown-eabi-_obs/gpio.o
+ _arm-unknown-eabi-_obs/main.o
+set_gpio_pin_mode _arm-unknown-eabi-_obs/gpio.o
+set_gpio_pin_output _arm-unknown-eabi-_obs/gpio.o
+ _arm-unknown-eabi-_obs/main.o
+set_sys_clock _arm-unknown-eabi-_obs/clock.o
+spin _arm-unknown-eabi-_obs/main.o
+vectors _arm-unknown-eabi-_obs/main.o