summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2014-07-24 11:09:03 +0800
committerChris Johns <chrisj@rtems.org>2014-07-24 17:15:42 +1000
commit427acf320cad6449b33f196dddf4226342de0631 (patch)
tree594c00f9dc5903536e610975273f1a4191c4806d
parent53ed116b90e9b9a920a6c0f939d28c035913d0ea (diff)
std::list should be sorted before unique
std::list should be sorted first, then unique can remove duplicated objects. Otherwise there will be many duplicated objects. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
-rw-r--r--linkers/rld-outputter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/linkers/rld-outputter.cpp b/linkers/rld-outputter.cpp
index e00fbae..e6527eb 100644
--- a/linkers/rld-outputter.cpp
+++ b/linkers/rld-outputter.cpp
@@ -428,6 +428,7 @@ namespace rld
cache.get_objects (objects);
objects.merge (dep_copy);
+ objects.sort ();
objects.unique ();
app.open (true);