From 32ef0116d2043944c851a2f940d66aa976612988 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Fri, 5 May 2017 14:34:31 +0300 Subject: MIPS: start*.S: drop redundant .text `.text' is equivalent to the `.section .text' directive. The `.text' directive just before `.section ".text_bare_init"' or just before `.section ".text_head_entry"' is redundant so drop it. Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/mips/boot/start-pbl.S | 1 - arch/mips/boot/start.S | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/mips/boot/start-pbl.S b/arch/mips/boot/start-pbl.S index b6d127a039..d6e8231a73 100644 --- a/arch/mips/boot/start-pbl.S +++ b/arch/mips/boot/start-pbl.S @@ -25,7 +25,6 @@ #include .set noreorder - .text .section ".text_head_entry" .align 4 diff --git a/arch/mips/boot/start.S b/arch/mips/boot/start.S index 1ddce9533e..0828ee4927 100644 --- a/arch/mips/boot/start.S +++ b/arch/mips/boot/start.S @@ -20,7 +20,6 @@ #include .set noreorder - .text .section ".text_bare_init" .align 4 -- cgit v1.2.3 From 3b77f114b0c23bab01c7e1f008654ac4ba8b93e3 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Fri, 5 May 2017 14:34:32 +0300 Subject: MIPS: barebox.lds.S: drop unneeded '_start = .' Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/mips/lib/barebox.lds.S | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index 8057634ddb..ffe846728f 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mips/lib/barebox.lds.S @@ -27,7 +27,6 @@ SECTIONS . = ALIGN(4); .text : { - _start = .; *(.text_entry*) _stext = .; _text = .; -- cgit v1.2.3 From a275dbaab7ebde8bc3f35cfd93528f1ec6e23f5e Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Fri, 5 May 2017 14:34:33 +0300 Subject: MIPS: barebox.lds.S: remove unused got Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/mips/lib/barebox.lds.S | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index ffe846728f..cc214920e3 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mips/lib/barebox.lds.S @@ -50,9 +50,6 @@ SECTIONS .barebox_imd : { BAREBOX_IMD } - . = ALIGN(4); - .got : { *(.got*) } - . = .; __barebox_cmd_start = .; .barebox_cmd : { BAREBOX_CMDS } -- cgit v1.2.3 From 1714d54139d4607e7916237c21f67e6dd98cacd5 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Fri, 5 May 2017 14:34:34 +0300 Subject: MIPS: barebox.lds.S: put .text_entry contents after _stext and _text Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/mips/lib/barebox.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index cc214920e3..899f62b968 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mips/lib/barebox.lds.S @@ -27,9 +27,9 @@ SECTIONS . = ALIGN(4); .text : { - *(.text_entry*) _stext = .; _text = .; + *(.text_entry*) __bare_init_start = .; *(.text_bare_init*) __bare_init_end = .; -- cgit v1.2.3 From 8aa6600365a384cc7d5fa82277a9b762fbb41e88 Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Fri, 5 May 2017 14:34:35 +0300 Subject: MIPS: start.S: put entry code into the ".text_entry" section The ".text_bare_init" section is not intended to be used for storing entry code. Signed-off-by: Antony Pavlov Signed-off-by: Sascha Hauer --- arch/mips/boot/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/start.S b/arch/mips/boot/start.S index 0828ee4927..e937e89af1 100644 --- a/arch/mips/boot/start.S +++ b/arch/mips/boot/start.S @@ -20,7 +20,7 @@ #include .set noreorder - .section ".text_bare_init" + .section ".text_entry" .align 4 EXPORT(_start) -- cgit v1.2.3