From 6e434eac0a66e83b328da7271d25b27f48e6e84e Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Thu, 8 Sep 2011 22:45:37 -0400 Subject: Linker scripts: Remove useless junk. --- support/ld/common_header.inc | 5 +---- support/ld/common_rom.inc | 12 ------------ 2 files changed, 1 insertion(+), 16 deletions(-) (limited to 'support') diff --git a/support/ld/common_header.inc b/support/ld/common_header.inc index ad1eca2..36ed2b1 100644 --- a/support/ld/common_header.inc +++ b/support/ld/common_header.inc @@ -26,7 +26,7 @@ EXTERN(main) /* Initial stack pointer value. */ EXTERN(__cs3_stack) -PROVIDE(__cs3_stack = __cs3_region_start_ram + __cs3_region_size_ram); +PROVIDE(__cs3_stack = __cs3_region_start_ram + LENGTH(ram)); /* Reset vector and chip reset entry point. See start.S */ EXTERN(_start) @@ -34,6 +34,3 @@ PROVIDE(__cs3_reset = _start); /* Beginning of the heap */ PROVIDE(__cs3_heap_start = _end); - -/* End of the heap */ -PROVIDE(__cs3_heap_end = __cs3_region_start_ram + __cs3_region_size_ram); diff --git a/support/ld/common_rom.inc b/support/ld/common_rom.inc index d0dcd6f..accea44 100644 --- a/support/ld/common_rom.inc +++ b/support/ld/common_rom.inc @@ -10,9 +10,6 @@ SECTIONS { .text : { - CREATE_OBJECT_SYMBOLS - __cs3_region_start_rom = .; - /* * STM32 vector table */ @@ -107,11 +104,6 @@ SECTIONS *(.USER_FLASH) } > rom - /* __cs3_region_end_rom is deprecated */ - __cs3_region_end_rom = __cs3_region_start_rom + LENGTH(rom); - __cs3_region_size_rom = LENGTH(rom); - __cs3_region_num = 1; - /* * Start of data */ @@ -136,12 +128,8 @@ SECTIONS *(.ram.b) . = ALIGN (8); _end = .; - __end = .; } > REGION_BSS AT> REGION_TEXT - /* __cs3_region_end_ram is deprecated */ - __cs3_region_end_ram = __cs3_region_start_ram + LENGTH(ram); - __cs3_region_size_ram = LENGTH(ram); __cs3_region_init_ram = LOADADDR (.data); __cs3_region_init_size_ram = _edata - ADDR (.data); __cs3_region_zero_size_ram = _end - _edata; -- cgit v1.2.3