Browse Source

Linux: Created new linker script from scratch

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
sbg
Mark Charlebois 10 years ago
parent
commit
5d988381e6
  1. 25
      linux-configs/linuxtest/scripts/ld.script

25
linux-configs/linuxtest/scripts/ld.script

@ -1,8 +1,8 @@
/**************************************************************************** /****************************************************************************
* configs/aerocore/common/ld.script * ld.script
* *
* Copyright (C) 2011 Gregory Nutt. All rights reserved. * Copyright (C) 2015 Mark Charlebois. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org> * Author: Mark Charlebois <charlebm@gmail.com>
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in * notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the * the documentation and/or other materials provided with the
* distribution. * distribution.
* 3. Neither the name NuttX nor the names of its contributors may be * 3. Neither the name PX4 nor the names of its contributors may be
* used to endorse or promote products derived from this software * used to endorse or promote products derived from this software
* without specific prior written permission. * without specific prior written permission.
* *
@ -33,27 +33,12 @@
* *
****************************************************************************/ ****************************************************************************/
/* The STM32F427 has 2048Kb of FLASH beginning at address 0x0800:0000 and
* 256Kb of SRAM. SRAM is split up into three blocks:
*
* 1) 112Kb of SRAM beginning at address 0x2000:0000
* 2) 16Kb of SRAM beginning at address 0x2001:c000
* 3) 64Kb of SRAM beginning at address 0x2002:0000
* 4) 64Kb of TCM SRAM beginning at address 0x1000:0000
*
* When booting from FLASH, FLASH memory is aliased to address 0x0000:0000
* where the code expects to begin execution by jumping to the entry point in
* the 0x0800:0000 address range.
*
* The first 0x4000 of flash is reserved for the bootloader.
*/
SECTIONS SECTIONS
{ {
/* /*
* Construction data for parameters. * Construction data for parameters.
*/ */
__param ALIGN(8): { __param : ALIGN(8) {
__param_start = .; __param_start = .;
KEEP(*(__param*)) KEEP(*(__param*))
__param_end = .; __param_end = .;

Loading…
Cancel
Save