aboutsummaryrefslogtreecommitdiff
path: root/firmware/fw_base.ldS
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2018-12-26 10:43:15 +0530
committerAnup Patel <anup@brainfault.org>2018-12-27 09:30:12 +0530
commitcfa3fba14f27f1fabaa8194d1ea1a6a21c2cc83a (patch)
treefc22120a17f83de0b6d15035cd78919df7aa98f1 /firmware/fw_base.ldS
parent4c1d5a5d2dad51a90d2617cd9f4187e6eb8f4159 (diff)
firmware: Rename fw_common.S to fw_base.S
The fw_common.S is the base firmware extendend by fw_jump and fw_payload. This patch renames fw_common.S to fw_base.S to have more clear/intutive name for base firmware. Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'firmware/fw_base.ldS')
-rw-r--r--firmware/fw_base.ldS77
1 files changed, 77 insertions, 0 deletions
diff --git a/firmware/fw_base.ldS b/firmware/fw_base.ldS
new file mode 100644
index 0000000..52771f8
--- /dev/null
+++ b/firmware/fw_base.ldS
@@ -0,0 +1,77 @@
+/*
+ * Copyright (c) 2018 Western Digital Corporation or its affiliates.
+ *
+ * Authors:
+ * Anup Patel <anup.patel@wdc.com>
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ */
+
+ . = FW_TEXT_START;
+
+ PROVIDE(_fw_start = .);
+
+ . = ALIGN(0x1000); /* Need this to create proper sections */
+
+ /* Beginning of the code section */
+
+ .text :
+ {
+ PROVIDE(_text_start = .);
+ *(.entry)
+ *(.text)
+ . = ALIGN(8);
+ PROVIDE(_text_end = .);
+ }
+
+ . = ALIGN(0x1000); /* Ensure next section is page aligned */
+
+ /* End of the code sections */
+
+ /* Beginning of the read-only data sections */
+
+ . = ALIGN(0x1000); /* Ensure next section is page aligned */
+
+ .rodata :
+ {
+ PROVIDE(_rodata_start = .);
+ *(.rodata .rodata.*)
+ . = ALIGN(8);
+ PROVIDE(_rodata_end = .);
+ }
+
+ /* End of the read-only data sections */
+
+ /* Beginning of the read-write data sections */
+
+ . = ALIGN(0x1000); /* Ensure next section is page aligned */
+
+ .data :
+ {
+ PROVIDE(_data_start = .);
+
+ *(.data)
+ *(.data.*)
+ *(.readmostly.data)
+ *(*.data)
+ . = ALIGN(8);
+
+ PROVIDE(_data_end = .);
+ }
+
+ . = ALIGN(0x1000); /* Ensure next section is page aligned */
+
+ .bss :
+ {
+ PROVIDE(_bss_start = .);
+ *(.bss)
+ *(.bss.*)
+ . = ALIGN(8);
+ PROVIDE(_bss_end = .);
+ }
+
+ /* End of the read-write data sections */
+
+ . = ALIGN(0x1000); /* Need this to create proper sections */
+
+ PROVIDE(_fw_end = .);