summaryrefslogtreecommitdiff
path: root/rld-outputter.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-11-21 13:04:47 +1100
committerChris Johns <chrisj@rtems.org>2012-11-21 13:04:47 +1100
commitb222b95f291740a0c096f71b25e1ecf90b6bffa5 (patch)
treef0ca5ba7653c9d23c266c68111ab3549b1384bee /rld-outputter.h
parent9f502af7b4eb76e67b7914c754db5d85a49443cd (diff)
Add entry point support.
Diffstat (limited to 'rld-outputter.h')
-rw-r--r--rld-outputter.h30
1 files changed, 19 insertions, 11 deletions
diff --git a/rld-outputter.h b/rld-outputter.h
index fa3ebb4..116d4b3 100644
--- a/rld-outputter.h
+++ b/rld-outputter.h
@@ -44,49 +44,57 @@ namespace rld
/**
* Output the object file list as a string.
*
+ * @param entry The name of the entry point symbol.
* @param dependents The list of dependent object files
* @param cache The file cache for the link. Includes the object list
* the user requested.
* @return std::string The list as a text string.
*/
- std::string script_text (rld::files::object_list& dependents,
- rld::files::cache& cache);
+ std::string script_text (const std::string& entry,
+ const files::object_list& dependents,
+ const files::cache& cache);
/**
* Output the object files as an archive format file with the metadata as
* the first ELF file.
*
* @param name The name of the archive.
+ * @param entry The name of the entry point symbol.
* @param dependents The list of dependent object files
* @param cache The file cache for the link. Includes the object list
* the user requested.
*/
- void archive (const std::string& name,
- rld::files::object_list& dependents,
- rld::files::cache& cache);
+ void archive (const std::string& name,
+ const std::string& entry,
+ const files::object_list& dependents,
+ const files::cache& cache);
/**
* Output the object file list as a script.
*
* @param name The name of the script.
+ * @param entry The name of the entry point symbol.
* @param dependents The list of dependent object files
* @param cache The file cache for the link. Includes the object list
* the user requested.
*/
- void script (const std::string& name,
- rld::files::object_list& dependents,
- rld::files::cache& cache);
+ void script (const std::string& name,
+ const std::string& entry,
+ const files::object_list& dependents,
+ const files::cache& cache);
/**
* Output the object files as a compressed list of files.
*
* @param name The name of the script.
+ * @param entry The name of the entry point symbol.
* @param dependents The list of dependent object files
* @param cache The file cache for the link. Includes the object list
* the user requested.
*/
- void application (const std::string& name,
- files::object_list& dependents,
- files::cache& cache);
+ void application (const std::string& name,
+ const std::string& entry,
+ const files::object_list& dependents,
+ const files::cache& cache);
}
}