Skip to content

Instantly share code, notes, and snippets.

@utzig
Created September 26, 2015 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utzig/623267a7b21c3b0b153e to your computer and use it in GitHub Desktop.
Save utzig/623267a7b21c3b0b153e to your computer and use it in GitHub Desktop.
ENTRY(Reset_Handler)
MEMORY
{
flash : org = 0x00000d10, len = 128k - 0xd10
ram : org = 0x1FFFE000, len = 16k
}
__ram_start__ = ORIGIN(ram);
__ram_size__ = LENGTH(ram);
__ram_end__ = __ram_start__ + __ram_size__;
SECTIONS
{
. = 0;
_text = .;
.isr : ALIGN(4) SUBALIGN(4)
{
KEEP(*(.vectors))
} > flash
constructors : ALIGN(4) SUBALIGN(4)
{
PROVIDE(__init_array_start = .);
KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_array))
PROVIDE(__init_array_end = .);
} > flash
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment