forked from fcayci/stm32f1-bare-metal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
96 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,30 @@ | ||
ENTRY(main) | ||
|
||
MEMORY { | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K | ||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K | ||
} | ||
|
||
ENTRY(main) | ||
|
||
SECTIONS { | ||
. = ORIGIN(rom); /* From 0x08000000 */ | ||
|
||
.text : | ||
{ | ||
*(.vectors) /* Vector table */ | ||
*(.text) | ||
*(.text*) /* Program code */ | ||
*(.gnu.linkonce.t.*) | ||
. = ALIGN(4); | ||
*(.rodata) | ||
*(.rodata*) /* Read only data */ | ||
*(.gnu.linkonce.r.*) | ||
KEEP(*(.vectors)) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
*(.rodata*) /* Read only data */ | ||
. = ALIGN(4); | ||
} >rom | ||
|
||
. = ORIGIN(ram); /* From 0x20000000 */ | ||
|
||
.data : | ||
{ | ||
*(.data) | ||
*(.data*) /* Read-write initialized data */ | ||
*(.gnu.linkonce.d.*) | ||
. = ALIGN(4); | ||
} >ram AT > rom | ||
} >ram AT >rom | ||
|
||
.bss : | ||
{ | ||
*(.bss) | ||
. = ALIGN(4); | ||
*(.bss*) /* Read-write zero initialized data */ | ||
*(.gnu.linkonce.b.*) | ||
*(COMMON) | ||
. = ALIGN(4); | ||
} >ram AT > rom | ||
|
||
. = ALIGN(4); | ||
end = .; | ||
} >ram | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,30 @@ | ||
ENTRY(main) | ||
|
||
MEMORY { | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K | ||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K | ||
} | ||
|
||
ENTRY(main) | ||
|
||
SECTIONS { | ||
. = ORIGIN(rom); /* From 0x08000000 */ | ||
|
||
.text : | ||
{ | ||
*(.vectors) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
. = ALIGN(4); | ||
*(.rodata*) /* Read only data */ | ||
KEEP(*(.vectors)) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
*(.rodata*) /* Read only data */ | ||
. = ALIGN(4); | ||
} >rom | ||
|
||
. = ORIGIN(ram); /* From 0x20000000 */ | ||
|
||
.data : | ||
{ | ||
*(.data*) /* Read-write initialized data */ | ||
. = ALIGN(4); | ||
} >ram | ||
} >ram AT >rom | ||
|
||
.bss : | ||
{ | ||
. = ALIGN(4); | ||
*(.bss*) /* Read-write zero initialized data */ | ||
*(COMMON) | ||
. = ALIGN(4); | ||
} >ram AT > rom | ||
|
||
. = ALIGN(4); | ||
end = .; | ||
} >ram | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,30 @@ | ||
ENTRY(main) | ||
|
||
MEMORY { | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K | ||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K | ||
} | ||
|
||
ENTRY(main) | ||
|
||
SECTIONS { | ||
. = ORIGIN(rom); /* From 0x08000000 */ | ||
|
||
.text : | ||
{ | ||
*(.vectors) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
. = ALIGN(4); | ||
*(.rodata*) /* Read only data */ | ||
KEEP(*(.vectors)) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
*(.rodata*) /* Read only data */ | ||
. = ALIGN(4); | ||
} >rom | ||
|
||
. = ORIGIN(ram); /* From 0x20000000 */ | ||
|
||
.data : | ||
{ | ||
*(.data*) /* Read-write initialized data */ | ||
. = ALIGN(4); | ||
} >ram | ||
} >ram AT >rom | ||
|
||
.bss : | ||
{ | ||
. = ALIGN(4); | ||
*(.bss*) /* Read-write zero initialized data */ | ||
*(COMMON) | ||
. = ALIGN(4); | ||
} >ram AT > rom | ||
|
||
. = ALIGN(4); | ||
end = .; | ||
} >ram | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,30 @@ | ||
ENTRY(main) | ||
|
||
MEMORY { | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K | ||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K | ||
} | ||
|
||
ENTRY(main) | ||
|
||
SECTIONS { | ||
. = ORIGIN(rom); /* From 0x08000000 */ | ||
|
||
.text : | ||
{ | ||
*(.vectors) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
. = ALIGN(4); | ||
*(.rodata*) /* Read only data */ | ||
KEEP(*(.vectors)) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
*(.rodata*) /* Read only data */ | ||
. = ALIGN(4); | ||
} >rom | ||
|
||
. = ORIGIN(ram); /* From 0x20000000 */ | ||
|
||
.data : | ||
{ | ||
*(.data*) /* Read-write initialized data */ | ||
. = ALIGN(4); | ||
} >ram | ||
} >ram AT >rom | ||
|
||
.bss : | ||
{ | ||
. = ALIGN(4); | ||
*(.bss*) /* Read-write zero initialized data */ | ||
*(COMMON) | ||
. = ALIGN(4); | ||
} >ram AT > rom | ||
|
||
. = ALIGN(4); | ||
end = .; | ||
} >ram | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,30 @@ | ||
ENTRY(main) | ||
|
||
MEMORY { | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K | ||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K | ||
} | ||
|
||
ENTRY(main) | ||
|
||
SECTIONS { | ||
. = ORIGIN(rom); /* From 0x08000000 */ | ||
|
||
.text : | ||
{ | ||
*(.vectors) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
. = ALIGN(4); | ||
*(.rodata*) /* Read only data */ | ||
KEEP(*(.vectors)) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
*(.rodata*) /* Read only data */ | ||
. = ALIGN(4); | ||
} >rom | ||
|
||
. = ORIGIN(ram); /* From 0x20000000 */ | ||
|
||
.data : | ||
{ | ||
*(.data*) /* Read-write initialized data */ | ||
. = ALIGN(4); | ||
} >ram | ||
} >ram AT >rom | ||
|
||
.bss : | ||
{ | ||
. = ALIGN(4); | ||
*(.bss*) /* Read-write zero initialized data */ | ||
*(COMMON) | ||
. = ALIGN(4); | ||
} >ram AT > rom | ||
|
||
. = ALIGN(4); | ||
end = .; | ||
} >ram | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,30 @@ | ||
ENTRY(main) | ||
|
||
MEMORY { | ||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 64K | ||
rom (rx) : ORIGIN = 0x08000000, LENGTH = 256K | ||
} | ||
|
||
ENTRY(main) | ||
|
||
SECTIONS { | ||
. = ORIGIN(rom); /* From 0x08000000 */ | ||
|
||
.text : | ||
{ | ||
*(.vectors) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
. = ALIGN(4); | ||
*(.rodata*) /* Read only data */ | ||
KEEP(*(.vectors)) /* Vector table */ | ||
*(.text*) /* Program code */ | ||
*(.rodata*) /* Read only data */ | ||
. = ALIGN(4); | ||
} >rom | ||
|
||
. = ORIGIN(ram); /* From 0x20000000 */ | ||
|
||
.data : | ||
{ | ||
*(.data*) /* Read-write initialized data */ | ||
. = ALIGN(4); | ||
} >ram | ||
} >ram AT >rom | ||
|
||
.bss : | ||
{ | ||
. = ALIGN(4); | ||
*(.bss*) /* Read-write zero initialized data */ | ||
*(COMMON) | ||
. = ALIGN(4); | ||
} >ram AT > rom | ||
|
||
. = ALIGN(4); | ||
end = .; | ||
} >ram | ||
} |
Oops, something went wrong.