summaryrefslogtreecommitdiff
path: root/include/link_defs.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-11-05 17:53:16 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-10 06:54:42 -0800
commit4611f0fbc2a11530d33cfda4bb66c965d2344ea9 (patch)
tree3814e8aef1085ba2d0a1a9da7e1f4dfd7ccd99d4 /include/link_defs.h
parentcb3e9777748251aab15fbceff80d0eaea18416b0 (diff)
downloadchrome-ec-4611f0fbc2a11530d33cfda4bb66c965d2344ea9.tar.gz
common: export the linker generated addresses of image sections
The values are there, we just need to be able to access them from the code to be able to calculate how much of the flash space needs to be made accessible for the image to run. BRANCH=none BUG=none TEST=used by later patches Change-Id: I4eb59525a50177cc7cc725871c3eab2ff390667b Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/311319 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/link_defs.h')
-rw-r--r--include/link_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/link_defs.h b/include/link_defs.h
index ad6a39f837..df0cbb6811 100644
--- a/include/link_defs.h
+++ b/include/link_defs.h
@@ -77,4 +77,9 @@ extern const void *__irqhandler[];
/* Shared memory buffer. Use via shared_mem.h interface. */
extern uint8_t __shared_mem_buf[];
+/* Image sections. */
+extern const void *__ro_end;
+extern const void *__data_start;
+extern const void *__data_end;
+
#endif /* __CROS_EC_LINK_DEFS_H */