aboutsummaryrefslogtreecommitdiff
path: root/libgloss
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2020-01-29 14:46:17 -0800
committerCorinna Vinschen <corinna@vinschen.de>2020-01-31 12:42:52 +0100
commit8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce (patch)
treea95f766c575883f786674021af632fa3e384a0c0 /libgloss
parent1cc07f3a3ea162d5f39ffeea54a74147754d3649 (diff)
downloadnewlib-8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce.zip
newlib-8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce.tar.gz
newlib-8ef32f2dcfe48b540e64a4ec3ce0dcba5d3b70ce.tar.bz2
RISC-V: Use newlib nano specific libm.
The libm gamma functions use the _gamma_signgam field of the reentrant structure, which changes offset with the --enable-newlib-reent-small configure option, which means we need to use a newlib nano specific version of libm in addition to libc in the nano.specs file. Reported by Keith Packard. There is a riscv-gnu-toolchain patch that goes along with this to create the new libm_nano.a file. Signed-off-by: Jim Wilson <jimw@sifive.com>
Diffstat (limited to 'libgloss')
-rw-r--r--libgloss/riscv/nano.specs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgloss/riscv/nano.specs b/libgloss/riscv/nano.specs
index 89fd231..e12e313 100644
--- a/libgloss/riscv/nano.specs
+++ b/libgloss/riscv/nano.specs
@@ -15,7 +15,7 @@
%(nano_link_gcc_c_sequence) --start-group %G %(nano_libc) %(nano_libgloss) --end-group
*link:
-%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano)
+%(nano_link) %:replace-outfile(-lc -lc_nano) %:replace-outfile(-lg -lg_nano) %:replace-outfile(-lm -lm_nano)
*lib:
%{!shared:%{g*:-lg_nano} %{!p:%{!pg:-lc_nano}}%{p:-lc_p}%{pg:-lc_p}}