From 5f11e12d66ce65e8be2b695ece6f35c2889d2aa2 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 19 Aug 2010 16:53:56 -0400 Subject: added libm.a to linker scripts to fix sqrt() bug Fixes a bug noted by several users when using math functions like cos(), sqrt(), etc in the Maple IDE. This bug did not seem to affect Makefile compiles. --- support/ld/flash.ld | 2 +- support/ld/jtag.ld | 2 +- support/ld/ram.ld | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'support') diff --git a/support/ld/flash.ld b/support/ld/flash.ld index b66bdef..2043649 100644 --- a/support/ld/flash.ld +++ b/support/ld/flash.ld @@ -33,7 +33,7 @@ OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") ENTRY(_start) SEARCH_DIR(.) /* GROUP(-lgcc -lc -lcs3 -lcs3unhosted -lcs3-lanchon-stm32) */ -GROUP(libgcc.a libc.a libcs3-lanchon-stm32.a) +GROUP(libgcc.a libc.a libm.a libcs3-lanchon-stm32.a) /* These force the linker to search for particular symbols from * the start of the link process and thus ensure the user's diff --git a/support/ld/jtag.ld b/support/ld/jtag.ld index 67fbe85..3823f4d 100644 --- a/support/ld/jtag.ld +++ b/support/ld/jtag.ld @@ -16,7 +16,7 @@ OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") ENTRY(_start) SEARCH_DIR(.) /* GROUP(-lgcc -lc -lcs3 -lcs3unhosted -lcs3-lanchon-stm32) */ -GROUP(libgcc.a libc.a libcs3-lanchon-stm32.a) +GROUP(libgcc.a libc.a libm.a libcs3-lanchon-stm32.a) /* These force the linker to search for particular symbols from * the start of the link process and thus ensure the user's diff --git a/support/ld/ram.ld b/support/ld/ram.ld index 6398ea4..59aaeda 100644 --- a/support/ld/ram.ld +++ b/support/ld/ram.ld @@ -34,7 +34,7 @@ OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") ENTRY(_start) SEARCH_DIR(.) /* GROUP(-lgcc -lc -lcs3 -lcs3unhosted -lcs3-lanchon-stm32) */ -GROUP(libgcc.a libc.a libcs3-lanchon-stm32.a) +GROUP(libgcc.a libc.a libm.a libcs3-lanchon-stm32.a) /* These force the linker to search for particular symbols from * the start of the link process and thus ensure the user's -- cgit v1.2.3