Skip to content

Instantly share code, notes, and snippets.

@the6p4c
Created July 15, 2019 12:54
Show Gist options
  • Select an option

  • Save the6p4c/df6bbe846dc982c445050ffaf6223171 to your computer and use it in GitHub Desktop.

Select an option

Save the6p4c/df6bbe846dc982c445050ffaf6223171 to your computer and use it in GitHub Desktop.

Revisions

  1. the6p4c created this gist Jul 15, 2019.
    18 changes: 18 additions & 0 deletions linker.ld
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    /* !heavily! work in progress */
    MEMORY {
    ram (rwx) : org = 0x00000000, l = 64K
    user (rx) : org = 0xFFF80000, l = 512K
    }

    SECTIONS {
    .text : {
    *(.text)
    *(.text*)
    *(.rodata)
    *(.rodata*)
    } > user

    .vector_table 0xFFFFFF80 : {
    *(.vector_table)
    } > user
    }