diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2014-07-24 11:09:03 +0800 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-07-24 17:15:42 +1000 |
commit | 427acf320cad6449b33f196dddf4226342de0631 (patch) | |
tree | 594c00f9dc5903536e610975273f1a4191c4806d /linkers | |
parent | Implement a new tool 'rtems-ra' (diff) | |
download | rtems-tools-427acf320cad6449b33f196dddf4226342de0631.tar.bz2 |
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>
Diffstat (limited to 'linkers')
-rw-r--r-- | linkers/rld-outputter.cpp | 1 |
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); |