altos/lpc: Be a bit more resistant to toolchain section name changes
authorKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 10:02:12 +0000 (02:02 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 10:02:12 +0000 (02:02 -0800)
Just add some wild cards on the ends of each section name in case the
toolchain changes names in the future.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/altos-loader.ld

index 4f78f55..9df6e45 100644 (file)
@@ -53,7 +53,7 @@ SECTIONS {
         */
        .boot ORIGIN(ram) + SIZEOF(.interrupt) (NOLOAD) : {
                __boot_start__ = .;
-               *(.boot)
+               *(.boot*)
                __boot_end__ = .;
        } >ram
 
@@ -61,15 +61,15 @@ SECTIONS {
         */
        .data : {
                __data_start__ = .;
-               *(.data       /* initialized data */
+               *(.data*)       /* initialized data */
                __data_end__ = .;
        } >ram AT>rom
 
 
        .bss : {
                __bss_start__ = .;
-               *(.bss)
-               *(COMMON)
+               *(.bss*)
+               *(COMMON*)
                __bss_end__ = .;
        } >ram