summaryrefslogtreecommitdiff
path: root/rtl-rap.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-01-12 07:43:42 +1100
committerChris Johns <chrisj@rtems.org>2013-01-12 07:43:42 +1100
commit76172ffa93a1205c82e0fb3aa4bc69788240a981 (patch)
tree6e5252c16a06b3f1f8423b6befeb06bc1a08b380 /rtl-rap.c
parentbade51b70fa86b067f8f6a1cb4df5ff62e6d4b67 (diff)
Add format signatures. Add find files.
Add a format signature so loaded files can be managed by format type. Move the find file code to a common routine to allow reuse.
Diffstat (limited to 'rtl-rap.c')
-rw-r--r--rtl-rap.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/rtl-rap.c b/rtl-rap.c
index 6b3dd9d..efe2362 100644
--- a/rtl-rap.c
+++ b/rtl-rap.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 2012 Chris Johns <chrisj@rtems.org>
+ * COPYRIGHT (c) 2012-2013 Chris Johns <chrisj@rtems.org>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -42,6 +42,15 @@
#define REL_R_ADDEND (2)
/**
+ * The ELF format signature.
+ */
+static rtems_rtl_loader_format_t rap_sig =
+{
+ .label = "RAP",
+ .flags = RTEMS_RTL_FMT_COMP
+};
+
+/**
* The section definitions found in a RAP file.
*/
typedef struct rtems_rtl_rap_sectdef_s
@@ -794,3 +803,9 @@ rtems_rtl_rap_file_load (rtems_rtl_obj_t* obj, int fd)
return true;
}
+
+rtems_rtl_loader_format_t*
+rtems_rtl_rap_file_sig (void)
+{
+ return &rap_sig;
+}