Clean up and make linker scripts more uniform

This includes:

 - fix some comments indent,
 - add entry point,
 - align exported symbols,
 - remove unneeded "." assignments.
This commit is contained in:
Nicolas Schodet
2012-09-03 19:41:36 +02:00
parent 11727f56c9
commit 2a35377980
8 changed files with 37 additions and 41 deletions

View File

@@ -30,8 +30,6 @@ ENTRY(reset_handler)
/* Define sections. */
SECTIONS
{
. = ORIGIN(rom);
.text : {
*(.vectors) /* Vector table */
*(.text*) /* Program code */
@@ -42,9 +40,9 @@ SECTIONS
} >rom
/*
* Another section used by C++ stuff, appears when using newlib with
* 64bit (long long) printf support
*/
* Another section used by C++ stuff, appears when using newlib with
* 64bit (long long) printf support
*/
.ARM.extab : {
*(.ARM.extab*)
} >rom
@@ -54,8 +52,6 @@ SECTIONS
__exidx_end = .;
} >rom
. = ORIGIN(ram);
.data : AT (__exidx_end) {
_data = .;
*(.data*) /* Read-write initialized data */
@@ -68,7 +64,7 @@ SECTIONS
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >ram AT >rom
} >ram
/*
* The .eh_frame section appears to be used for C++ exception handling.