Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 1 | /* |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 2 | * Copyright (c) 2013-2023, Arm Limited and Contributors. All rights reserved. |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Masahiro Yamada | 0b67e56 | 2020-03-09 17:39:48 +0900 | [diff] [blame] | 7 | #include <common/bl_common.ld.h> |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 8 | #include <lib/xlat_tables/xlat_tables_defs.h> |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 9 | |
| 10 | OUTPUT_FORMAT(PLATFORM_LINKER_FORMAT) |
| 11 | OUTPUT_ARCH(PLATFORM_LINKER_ARCH) |
Jeenu Viswambharan | 2a30a75 | 2014-03-11 11:06:45 +0000 | [diff] [blame] | 12 | ENTRY(bl31_entrypoint) |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 13 | |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 14 | MEMORY { |
Juan Castillo | fd8c077 | 2014-09-16 10:40:35 +0100 | [diff] [blame] | 15 | RAM (rwx): ORIGIN = BL31_BASE, LENGTH = BL31_LIMIT - BL31_BASE |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 16 | |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 17 | #if SEPARATE_NOBITS_REGION |
| 18 | NOBITS (rw!a): ORIGIN = BL31_NOBITS_BASE, LENGTH = BL31_NOBITS_LIMIT - BL31_NOBITS_BASE |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 19 | #else /* SEPARATE_NOBITS_REGION */ |
| 20 | # define NOBITS RAM |
| 21 | #endif /* SEPARATE_NOBITS_REGION */ |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 22 | } |
| 23 | |
Caesar Wang | d90f43e | 2016-10-11 09:36:00 +0800 | [diff] [blame] | 24 | #ifdef PLAT_EXTRA_LD_SCRIPT |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 25 | # include <plat.ld.S> |
| 26 | #endif /* PLAT_EXTRA_LD_SCRIPT */ |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 27 | |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 28 | SECTIONS { |
Harrison Mutai | 8d6b741 | 2023-04-19 09:30:15 +0100 | [diff] [blame] | 29 | RAM_REGION_START = ORIGIN(RAM); |
| 30 | RAM_REGION_LENGTH = LENGTH(RAM); |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 31 | . = BL31_BASE; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 32 | |
Antonio Nino Diaz | 2ce2b09 | 2017-11-15 11:45:35 +0000 | [diff] [blame] | 33 | ASSERT(. == ALIGN(PAGE_SIZE), |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 34 | "BL31_BASE address is not aligned on a page boundary.") |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 35 | |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 36 | __BL31_START__ = .; |
| 37 | |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 38 | #if SEPARATE_CODE_AND_RODATA |
| 39 | .text . : { |
Andrey Skvortsov | 08526ad | 2023-09-05 22:09:25 +0300 | [diff] [blame] | 40 | ASSERT(. == ALIGN(PAGE_SIZE), |
| 41 | ".text is not aligned on a page boundary."); |
| 42 | |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 43 | __TEXT_START__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 44 | |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 45 | *bl31_entrypoint.o(.text*) |
Jimmy Brisson | ed20207 | 2020-08-04 16:18:52 -0500 | [diff] [blame] | 46 | *(SORT_BY_ALIGNMENT(SORT(.text*))) |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 47 | *(.vectors) |
Michal Simek | 80c530e | 2023-04-27 14:26:03 +0200 | [diff] [blame] | 48 | __TEXT_END_UNALIGNED__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 49 | |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 50 | . = ALIGN(PAGE_SIZE); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 51 | |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 52 | __TEXT_END__ = .; |
| 53 | } >RAM |
| 54 | |
| 55 | .rodata . : { |
| 56 | __RODATA_START__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 57 | |
Samuel Holland | 23f5e54 | 2019-10-20 16:11:25 -0500 | [diff] [blame] | 58 | *(SORT_BY_ALIGNMENT(.rodata*)) |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 59 | |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 60 | # if PLAT_EXTRA_RODATA_INCLUDES |
| 61 | # include <plat.ld.rodata.inc> |
| 62 | # endif /* PLAT_EXTRA_RODATA_INCLUDES */ |
developer | 8a3180d | 2022-08-05 10:04:10 +0800 | [diff] [blame] | 63 | |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 64 | RODATA_COMMON |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 65 | |
Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 66 | . = ALIGN(8); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 67 | |
| 68 | # include <lib/el3_runtime/pubsub_events.h> |
Michal Simek | 80c530e | 2023-04-27 14:26:03 +0200 | [diff] [blame] | 69 | __RODATA_END_UNALIGNED__ = .; |
Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 70 | |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 71 | . = ALIGN(PAGE_SIZE); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 72 | |
Sandrine Bailleux | f91f144 | 2016-07-08 14:37:40 +0100 | [diff] [blame] | 73 | __RODATA_END__ = .; |
| 74 | } >RAM |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 75 | #else /* SEPARATE_CODE_AND_RODATA */ |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 76 | .ro . : { |
Andrey Skvortsov | 08526ad | 2023-09-05 22:09:25 +0300 | [diff] [blame] | 77 | ASSERT(. == ALIGN(PAGE_SIZE), |
| 78 | ".ro is not aligned on a page boundary."); |
| 79 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 80 | __RO_START__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 81 | |
Andrew Thoelke | e01ea34 | 2014-03-18 07:13:52 +0000 | [diff] [blame] | 82 | *bl31_entrypoint.o(.text*) |
Samuel Holland | 23f5e54 | 2019-10-20 16:11:25 -0500 | [diff] [blame] | 83 | *(SORT_BY_ALIGNMENT(.text*)) |
| 84 | *(SORT_BY_ALIGNMENT(.rodata*)) |
Achin Gupta | 7421b46 | 2014-02-01 18:53:26 +0000 | [diff] [blame] | 85 | |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 86 | RODATA_COMMON |
Soby Mathew | 2b3fc1d | 2018-12-12 14:33:11 +0000 | [diff] [blame] | 87 | |
Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 88 | . = ALIGN(8); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 89 | |
| 90 | # include <lib/el3_runtime/pubsub_events.h> |
Jeenu Viswambharan | e3f2200 | 2017-09-22 08:32:10 +0100 | [diff] [blame] | 91 | |
Achin Gupta | b739f22 | 2014-01-18 16:50:09 +0000 | [diff] [blame] | 92 | *(.vectors) |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 93 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 94 | __RO_END_UNALIGNED__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 95 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 96 | /* |
| 97 | * Memory page(s) mapped to this section will be marked as read-only, |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 98 | * executable. No RW data from the next section must creep in. Ensure |
| 99 | * that the rest of the current memory page is unused. |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 100 | */ |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 101 | . = ALIGN(PAGE_SIZE); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 102 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 103 | __RO_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 104 | } >RAM |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 105 | #endif /* SEPARATE_CODE_AND_RODATA */ |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 106 | |
Soby Mathew | c704cbc | 2014-08-14 11:33:56 +0100 | [diff] [blame] | 107 | ASSERT(__CPU_OPS_END__ > __CPU_OPS_START__, |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 108 | "cpu_ops not defined for this platform.") |
Soby Mathew | c704cbc | 2014-08-14 11:33:56 +0100 | [diff] [blame] | 109 | |
Nishant Sharma | 341b311 | 2023-10-12 10:43:16 +0100 | [diff] [blame] | 110 | #if SPM_MM || (SPMC_AT_EL3 && SPMC_AT_EL3_SEL0_SP) |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 111 | # ifndef SPM_SHIM_EXCEPTIONS_VMA |
| 112 | # define SPM_SHIM_EXCEPTIONS_VMA RAM |
| 113 | # endif /* SPM_SHIM_EXCEPTIONS_VMA */ |
Ard Biesheuvel | 447d56f | 2019-01-06 10:07:24 +0100 | [diff] [blame] | 114 | |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 115 | /* |
| 116 | * Exception vectors of the SPM shim layer. They must be aligned to a 2K |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 117 | * address but we need to place them in a separate page so that we can set |
| 118 | * individual permissions on them, so the actual alignment needed is the |
| 119 | * page size. |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 120 | * |
| 121 | * There's no need to include this into the RO section of BL31 because it |
| 122 | * doesn't need to be accessed by BL31. |
| 123 | */ |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 124 | .spm_shim_exceptions : ALIGN(PAGE_SIZE) { |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 125 | __SPM_SHIM_EXCEPTIONS_START__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 126 | |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 127 | *(.spm_shim_exceptions) |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 128 | |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 129 | . = ALIGN(PAGE_SIZE); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 130 | |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 131 | __SPM_SHIM_EXCEPTIONS_END__ = .; |
Ard Biesheuvel | 447d56f | 2019-01-06 10:07:24 +0100 | [diff] [blame] | 132 | } >SPM_SHIM_EXCEPTIONS_VMA AT>RAM |
| 133 | |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 134 | PROVIDE(__SPM_SHIM_EXCEPTIONS_LMA__ = LOADADDR(.spm_shim_exceptions)); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 135 | |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 136 | . = LOADADDR(.spm_shim_exceptions) + SIZEOF(.spm_shim_exceptions); |
Nishant Sharma | 341b311 | 2023-10-12 10:43:16 +0100 | [diff] [blame] | 137 | #endif /* SPM_MM || (SPMC_AT_EL3 && SPMC_AT_EL3_SEL0_SP) */ |
Antonio Nino Diaz | c41f206 | 2017-10-24 10:07:35 +0100 | [diff] [blame] | 138 | |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 139 | __RW_START__ = .; |
Achin Gupta | e9c4a64 | 2015-09-11 16:03:13 +0100 | [diff] [blame] | 140 | |
Masahiro Yamada | c5864d8 | 2020-04-22 10:50:12 +0900 | [diff] [blame] | 141 | DATA_SECTION >RAM |
Masahiro Yamada | 85fa00e | 2020-04-22 11:27:55 +0900 | [diff] [blame] | 142 | RELA_SECTION >RAM |
Soby Mathew | 4e28c20 | 2018-10-14 08:09:22 +0100 | [diff] [blame] | 143 | |
Sandrine Bailleux | e2e0c65 | 2014-06-16 16:12:27 +0100 | [diff] [blame] | 144 | #ifdef BL31_PROGBITS_LIMIT |
Boyan Karatotev | 3e0e789 | 2023-03-30 14:56:45 +0100 | [diff] [blame] | 145 | ASSERT( |
| 146 | . <= BL31_PROGBITS_LIMIT, |
| 147 | "BL31 progbits has exceeded its limit. Consider disabling some features." |
| 148 | ) |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 149 | #endif /* BL31_PROGBITS_LIMIT */ |
Sandrine Bailleux | e2e0c65 | 2014-06-16 16:12:27 +0100 | [diff] [blame] | 150 | |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 151 | #if SEPARATE_NOBITS_REGION |
Madhukar Pappireddy | f4e6ea6 | 2020-01-27 15:32:15 -0600 | [diff] [blame] | 152 | . = ALIGN(PAGE_SIZE); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 153 | |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 154 | __RW_END__ = .; |
| 155 | __BL31_END__ = .; |
| 156 | |
| 157 | ASSERT(. <= BL31_LIMIT, "BL31 image has exceeded its limit.") |
| 158 | |
| 159 | . = BL31_NOBITS_BASE; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 160 | |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 161 | ASSERT(. == ALIGN(PAGE_SIZE), |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 162 | "BL31 NOBITS base address is not aligned on a page boundary.") |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 163 | |
| 164 | __NOBITS_START__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 165 | #endif /* SEPARATE_NOBITS_REGION */ |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 166 | |
Masahiro Yamada | 403990e | 2020-04-07 13:04:24 +0900 | [diff] [blame] | 167 | STACK_SECTION >NOBITS |
Masahiro Yamada | dd053b6 | 2020-03-26 13:16:33 +0900 | [diff] [blame] | 168 | BSS_SECTION >NOBITS |
Masahiro Yamada | 0b67e56 | 2020-03-09 17:39:48 +0900 | [diff] [blame] | 169 | XLAT_TABLE_SECTION >NOBITS |
Achin Gupta | a0cd989 | 2014-02-09 13:30:38 +0000 | [diff] [blame] | 170 | |
Soby Mathew | 2ae2043 | 2015-01-08 18:02:44 +0000 | [diff] [blame] | 171 | #if USE_COHERENT_MEM |
Achin Gupta | a0cd989 | 2014-02-09 13:30:38 +0000 | [diff] [blame] | 172 | /* |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 173 | * The base address of the coherent memory section must be page-aligned to |
| 174 | * guarantee that the coherent data are stored on their own pages and are |
| 175 | * not mixed with normal data. This is required to set up the correct |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 176 | * memory attributes for the coherent data page tables. |
| 177 | */ |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 178 | .coherent_ram (NOLOAD) : ALIGN(PAGE_SIZE) { |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 179 | __COHERENT_RAM_START__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 180 | |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 181 | /* |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 182 | * Bakery locks are stored in coherent memory. Each lock's data is |
| 183 | * contiguous and fully allocated by the compiler. |
Andrew Thoelke | e466c9f | 2015-09-10 11:39:36 +0100 | [diff] [blame] | 184 | */ |
Chris Kay | 33bfc5e | 2023-02-14 11:30:04 +0000 | [diff] [blame] | 185 | *(.bakery_lock) |
| 186 | *(.tzfw_coherent_mem) |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 187 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 188 | __COHERENT_RAM_END_UNALIGNED__ = .; |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 189 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 190 | /* |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 191 | * Memory page(s) mapped to this section will be marked as device |
| 192 | * memory. No other unexpected data must creep in. Ensure the rest of |
| 193 | * the current memory page is unused. |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 194 | */ |
Roberto Vargas | d93fde3 | 2018-04-11 11:53:31 +0100 | [diff] [blame] | 195 | . = ALIGN(PAGE_SIZE); |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 196 | |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 197 | __COHERENT_RAM_END__ = .; |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 198 | } >NOBITS |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 199 | #endif /* USE_COHERENT_MEM */ |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 200 | |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 201 | #if SEPARATE_NOBITS_REGION |
Samuel Holland | 31a14e1 | 2018-10-17 21:40:18 -0500 | [diff] [blame] | 202 | __NOBITS_END__ = .; |
| 203 | |
| 204 | ASSERT(. <= BL31_NOBITS_LIMIT, "BL31 NOBITS region has exceeded its limit.") |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 205 | #else /* SEPARATE_NOBITS_REGION */ |
Achin Gupta | e9c4a64 | 2015-09-11 16:03:13 +0100 | [diff] [blame] | 206 | __RW_END__ = .; |
Sandrine Bailleux | 8d69a03 | 2013-11-27 09:38:52 +0000 | [diff] [blame] | 207 | __BL31_END__ = .; |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 208 | |
Samuel Holland | 322df2a | 2022-04-08 22:22:04 -0500 | [diff] [blame] | 209 | ASSERT(. <= BL31_LIMIT, "BL31 image has exceeded its limit.") |
Chris Kay | 4b7660a | 2022-09-29 14:36:53 +0100 | [diff] [blame] | 210 | #endif /* SEPARATE_NOBITS_REGION */ |
Harrison Mutai | 8d6b741 | 2023-04-19 09:30:15 +0100 | [diff] [blame] | 211 | RAM_REGION_END = .; |
Samuel Holland | 322df2a | 2022-04-08 22:22:04 -0500 | [diff] [blame] | 212 | |
Masahiro Yamada | d3e7baa | 2020-01-17 13:44:50 +0900 | [diff] [blame] | 213 | /DISCARD/ : { |
| 214 | *(.dynsym .dynstr .hash .gnu.hash) |
| 215 | } |
Achin Gupta | 4f6ad66 | 2013-10-25 09:08:21 +0100 | [diff] [blame] | 216 | } |