diff --git a/tools/export/e2studio/.cproject.tmpl b/tools/export/e2studio/.cproject.tmpl
index d8732301d3..57c7a9972a 100644
--- a/tools/export/e2studio/.cproject.tmpl
+++ b/tools/export/e2studio/.cproject.tmpl
@@ -326,10 +326,10 @@
{% endfor %}
@@ -337,6 +337,9 @@
{% for path in opts['ld']['object_files'] %}
{% endfor %}
+ {% for path in opts['ld']['user_library_files'] %}
+
+ {% endfor %}
{% if opts['ld']['gcsections'] %}
diff --git a/tools/export/gnuarmeclipse/.cproject.tmpl b/tools/export/gnuarmeclipse/.cproject.tmpl
index 721e261a0c..2c86c3b9cc 100644
--- a/tools/export/gnuarmeclipse/.cproject.tmpl
+++ b/tools/export/gnuarmeclipse/.cproject.tmpl
@@ -326,10 +326,10 @@
{% endfor %}
@@ -337,6 +337,9 @@
{% for path in opts['ld']['object_files'] %}
{% endfor %}
+ {% for path in opts['ld']['user_library_files'] %}
+
+ {% endfor %}
{% if opts['ld']['gcsections'] %}
diff --git a/tools/export/gnuarmeclipse/__init__.py b/tools/export/gnuarmeclipse/__init__.py
index 14e74c09a2..9b9ce43116 100644
--- a/tools/export/gnuarmeclipse/__init__.py
+++ b/tools/export/gnuarmeclipse/__init__.py
@@ -90,7 +90,9 @@ class GNUARMEclipse(Exporter):
# TODO: use some logger to display additional info if verbose
libraries = []
+ library_files = []
for lib in self.libraries:
+ library_files.append(self.filter_dot(lib))
l, _ = splitext(basename(lib))
libraries.append(l[3:])
@@ -178,6 +180,7 @@ class GNUARMEclipse(Exporter):
opts['ld']['object_files'] = objects
opts['ld']['user_libraries'] = libraries
+ opts['ld']['user_library_files'] = library_files
opts['ld']['system_libraries'] = self.system_libraries
opts['ld']['script'] = join(id.capitalize(),
"linker-script-%s.ld" % id)