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 <rubini@gnudd.com>
parent 478e3105
...@@ -68,7 +68,7 @@ CFLAGS = $(CFLAGS_PLATFORM) $(cflags-y) \ ...@@ -68,7 +68,7 @@ CFLAGS = $(CFLAGS_PLATFORM) $(cflags-y) \
-include include/trace.h -include include/trace.h
LDFLAGS = $(LDFLAGS_PLATFORM) \ LDFLAGS = $(LDFLAGS_PLATFORM) \
-ffunction-sections -fdata-sections -Wl,--gc-sections -Os -Iinclude -Wl,--gc-sections -Os -lgcc -lc
OBJS = $(obj-y) OBJS = $(obj-y)
......
/* /*
* Simulator Link script for Lattice Mico32. * Link script for Lattice Mico32. Very loosely based on
* Contributed by Jon Beniston <jon@beniston.com> * code contributed by Jon Beniston <jon@beniston.com>
*
* Jon's license (BSD-style):
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -26,8 +28,6 @@ ...@@ -26,8 +28,6 @@
OUTPUT_FORMAT("elf32-lm32") OUTPUT_FORMAT("elf32-lm32")
ENTRY(_start) ENTRY(_start)
/*INPUT() */
GROUP(-lgcc -lc)
MEMORY MEMORY
{ {
......
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