aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2020-01-21 15:01:41 -0500
committerAlexey Kardashevskiy <aik@ozlabs.ru>2020-02-21 14:03:07 +1100
commitdc6b3f5ae020c950e12a97ef4e3baca21e027e08 (patch)
tree9cdc299345b245723f9be80527f9b21ce3b57825
parentb4a8dea2737b43f2b94787fe5fd65a606dbca9c0 (diff)
downloadSLOF-dc6b3f5ae020c950e12a97ef4e3baca21e027e08.zip
SLOF-dc6b3f5ae020c950e12a97ef4e3baca21e027e08.tar.gz
SLOF-dc6b3f5ae020c950e12a97ef4e3baca21e027e08.tar.bz2
slof: Make linker script variables accessible
Make linker script variables related to 'text' addresses available to the code so we can measure the static core root of trust contents. When hashing the 'data' part of SLOF we do not end up with the same measurements for the same firmware when booting with different configurations, so we don't make those available. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r--slof/OF.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/slof/OF.h b/slof/OF.h
new file mode 100644
index 0000000..981a80a
--- /dev/null
+++ b/slof/OF.h
@@ -0,0 +1,20 @@
+/******************************************************************************
+ * Copyright (c) 2020 IBM Corporation
+ * All rights reserved.
+ * This program and the accompanying materials
+ * are made available under the terms of the BSD License
+ * which accompanies this distribution, and is available at
+ * http://www.opensource.org/licenses/bsd-license.php
+ *
+ * Contributors:
+ * IBM Corporation - initial implementation
+ *****************************************************************************/
+
+#ifndef _SLOF_OF_H
+#define _SLOF_OF_H
+
+/* from OF.lds */
+extern long _slof_text;
+extern long _slof_text_end;
+
+#endif