Skip to content

Commit 8d7ac69

Browse files
Ingo Molnarvapier
authored andcommitted
Blackfin: Fix link errors with binutils 2.19 and GCC 4.3
Not sure whether this has been reported/fixed before. Today I built a Blackfin tool-chain from scratch for -tip testing, and it triggers: arch/blackfin/kernel/vmlinux.lds:1238: undefined section `.data_a_l1' referenced in expression and: arch/blackfin/kernel/vmlinux.lds:1238: undefined section `.text_data_l1' referenced in expression Now i dont have any way to test this linker script, but it now at least builds fine after fixing what appears to be typos in those assert statements. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
1 parent 1794131 commit 8d7ac69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/blackfin/kernel/vmlinux.lds.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ SECTIONS
221221
. = ALIGN(4);
222222
__ebss_l1 = .;
223223
}
224-
ASSERT (SIZEOF(.data_a_l1) <= L1_DATA_A_LENGTH, "L1 data A overflow!")
224+
ASSERT (SIZEOF(.data_l1) <= L1_DATA_A_LENGTH, "L1 data A overflow!")
225225

226226
.data_b_l1 L1_DATA_B_START : AT(LOADADDR(.data_l1) + SIZEOF(.data_l1))
227227
{
@@ -262,7 +262,7 @@ SECTIONS
262262
. = ALIGN(4);
263263
__ebss_l2 = .;
264264
}
265-
ASSERT (SIZEOF(.text_data_l1) <= L2_LENGTH, "L2 overflow!")
265+
ASSERT (SIZEOF(.text_data_l2) <= L2_LENGTH, "L2 overflow!")
266266

267267
/* Force trailing alignment of our init section so that when we
268268
* free our init memory, we don't leave behind a partial page.

0 commit comments

Comments
 (0)