diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-21 13:36:32 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-21 13:36:32 +1100 |
commit | 7b2762fe1438b2250b0968e5f9f43b6066ed4d77 (patch) | |
tree | 489efcf44382dfdea07d5d7ec91454dcb5e731ac /linkers/rtems-ld.cpp | |
parent | 43ec8b0e3e0c2715dbd903829124c9c8456a6cc1 (diff) |
Make the entry point an unresolved symbol.
Diffstat (limited to 'linkers/rtems-ld.cpp')
-rw-r--r-- | linkers/rtems-ld.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linkers/rtems-ld.cpp b/linkers/rtems-ld.cpp index 59dbab2..9c16347 100644 --- a/linkers/rtems-ld.cpp +++ b/linkers/rtems-ld.cpp @@ -297,6 +297,12 @@ main (int argc, char* argv[]) objects.push_back (*argv++); /* + * The 'entry' point symbol needs to be added to the undefines so it is + * resolved. + */ + undefines.push_back (rld::symbols::symbol (entry)); + + /* * Load the symbol table with the defined symbols from the defines bucket. */ rld::symbols::load (defines, symbols); |