Skip to content

Commit

Permalink
temporary fix for the linker file for generating big binary files
Browse files Browse the repository at this point in the history
  • Loading branch information
fcayci committed Apr 25, 2017
1 parent f0a8619 commit fff679e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion adc/stm32.ld
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,31 @@ SECTIONS {
.text :
{
*(.vectors) /* Vector table */
*(.text)
*(.text*) /* Program code */
*(.gnu.linkonce.t.*)
. = ALIGN(4);
*(.rodata)
*(.rodata*) /* Read only data */
*(.gnu.linkonce.r.*)
. = ALIGN(4);
} >rom

. = ORIGIN(ram); /* From 0x20000000 */

.data :
{
*(.data)
*(.data*) /* Read-write initialized data */
*(.gnu.linkonce.d.*)
. = ALIGN(4);
} >ram
} >ram AT > rom

.bss :
{
*(.bss)
*(.bss*) /* Read-write zero initialized data */
*(.gnu.linkonce.b.*)
. = ALIGN(4);
} >ram AT > rom

Expand Down

0 comments on commit fff679e

Please sign in to comment.