diff options
author | Pixel <pixel@nobis-crew.org> | 2011-01-26 23:15:59 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-01-26 23:15:59 -0800 |
commit | c08bb737198dc1beac552af363646c307094d731 (patch) | |
tree | ad1a465f5cc2106090c15c70705ae330adcebcc7 /arch | |
parent | 6ea8f09c022b16f6316a1253821ae44d933cec30 (diff) |
Simplification of the ldscript, and consolidation of the makefiles.
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/lpc17xx/ldscript | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/arch/arm/lpc17xx/ldscript b/arch/arm/lpc17xx/ldscript index 2a1ce2b..677d063 100644 --- a/arch/arm/lpc17xx/ldscript +++ b/arch/arm/lpc17xx/ldscript @@ -54,6 +54,7 @@ SECTIONS { .text : { + . = ALIGN(32); CREATE_OBJECT_SYMBOLS __cs3_region_start_rom = .; __privileged_code_start__ = . ; @@ -73,14 +74,8 @@ SECTIONS *( .privileged_code ) *( privileged_functions ) - - __privileged_code_end___len = . - __privileged_code_start__ - 1 ; - __privileged_code_end___len |= __privileged_code_end___len >> 1 ; - __privileged_code_end___len |= __privileged_code_end___len >> 2 ; - __privileged_code_end___len |= __privileged_code_end___len >> 4 ; - __privileged_code_end___len |= __privileged_code_end___len >> 8 ; - __privileged_code_end___len |= __privileged_code_end___len >> 16 ; - . = ALIGN( MAX( __privileged_code_end___len + 1, 32 ) ) ; + + . = ALIGN(32); __privileged_code_end__ = .; __privileged_functions_end__ = .; @@ -163,17 +158,12 @@ SECTIONS .data : { + . = ALIGN(32); __cs3_region_start_ram = .; __ram_data_begin = .; __privileged_data_start__ = .; *( privileged_data ) - __privileged_data_end___len = . - __privileged_data_start__ - 1 ; - __privileged_data_end___len |= __privileged_data_end___len >> 1 ; - __privileged_data_end___len |= __privileged_data_end___len >> 2 ; - __privileged_data_end___len |= __privileged_data_end___len >> 4 ; - __privileged_data_end___len |= __privileged_data_end___len >> 8 ; - __privileged_data_end___len |= __privileged_data_end___len >> 16 ; - . = ALIGN( MAX( __privileged_data_end___len + 1, 32 ) ) ; + . = ALIGN(32); __privileged_data_end__ = .; *(.cs3.region-head.ram) |