Commit 583ab278 authored by Alessandro Rubini's avatar Alessandro Rubini

build: move libs from ldscript to LDFLAGS

Instead of picking libraries from the linker script, common practice
is listing them in LDFLAGS. This simplifies review and modification.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 478e3105
......@@ -68,7 +68,7 @@ CFLAGS = $(CFLAGS_PLATFORM) $(cflags-y) \
-include include/trace.h
-ffunction-sections -fdata-sections -Wl,--gc-sections -Os -Iinclude
-Wl,--gc-sections -Os -lgcc -lc
OBJS = $(obj-y)
* Simulator Link script for Lattice Mico32.
* Contributed by Jon Beniston <>
* Link script for Lattice Mico32. Very loosely based on
* code contributed by Jon Beniston <>
* Jon's license (BSD-style):
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -26,8 +28,6 @@
/*INPUT() */
GROUP(-lgcc -lc)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment