Skip to contentSkip to conversation

MIPS: start*.S and barebox.lds.S fixups

PATCH Applied Antony Pavlov 2 participants 7 messages May 5, 2017 – May 8, 2017 MIPS

lore
Share & tools
lore
#0 lore raw

cover MIPS: start*.S and barebox.lds.S fixups

Antony Pavlov (5):
MIPS: start*.S: drop redundant .text
MIPS: barebox.lds.S: drop unneeded '_start = .'
MIPS: barebox.lds.S: remove unused got
MIPS: barebox.lds.S: put .text_entry contents after _stext and _text
MIPS: start.S: put entry code into the ".text_entry" section

 arch/mips/boot/start-pbl.S  | 1 -
 arch/mips/boot/start.S      | 3 +--
 arch/mips/lib/barebox.lds.S | 6 +-----
 3 files changed, 2 insertions(+), 8 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/5 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.

---
 arch/mips/boot/start-pbl.S | 1 -
 arch/mips/boot/start.S     | 1 -
 2 files changed, 2 deletions(-)
arch/mips/boot/start-pbl.S +0 -1
index b6d127a039..d6e8231a73 100644
@@ -25,7 +25,6 @@
 #include <board/board_pbl_start.h>
 
 	.set noreorder
-	.text
 	.section ".text_head_entry"
 	.align 4
 
arch/mips/boot/start.S +0 -1
index 1ddce9533e..0828ee4927 100644
@@ -20,7 +20,6 @@
 #include <asm/pbl_macros.h>
 
 	.set noreorder
-	.text
 	.section ".text_bare_init"
 	.align 4
 
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

PATCH 2/5 MIPS: barebox.lds.S: drop unneeded '_start = .'

In reply to Antony Pavlov
---
 arch/mips/lib/barebox.lds.S | 1 -
 1 file changed, 1 deletion(-)
arch/mips/lib/barebox.lds.S +0 -1
index 8057634ddb..ffe846728f 100644
@@ -27,7 +27,6 @@ SECTIONS
 	. = ALIGN(4);
 	.text      :
 	{
-		_start = .;
 		*(.text_entry*)
 		_stext = .;
 		_text = .;
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

PATCH 3/5 MIPS: barebox.lds.S: remove unused got

In reply to Antony Pavlov
---
 arch/mips/lib/barebox.lds.S | 3 ---
 1 file changed, 3 deletions(-)
arch/mips/lib/barebox.lds.S +0 -3
index ffe846728f..cc214920e3 100644
@@ -50,9 +50,6 @@ SECTIONS
 
 	.barebox_imd : { BAREBOX_IMD }
 
-	. = ALIGN(4);
-	.got : { *(.got*) }
-
 	. = .;
 	__barebox_cmd_start = .;
 	.barebox_cmd : { BAREBOX_CMDS }
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw

PATCH 4/5 MIPS: barebox.lds.S: put .text_entry contents after _stext and _text

In reply to Antony Pavlov
---
 arch/mips/lib/barebox.lds.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/lib/barebox.lds.S +1 -1
index cc214920e3..899f62b968 100644
@@ -27,9 +27,9 @@ SECTIONS
 	. = ALIGN(4);
 	.text      :
 	{
-		*(.text_entry*)
 		_stext = .;
 		_text = .;
+		*(.text_entry*)
 		__bare_init_start = .;
 		*(.text_bare_init*)
 		__bare_init_end = .;
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw

PATCH 5/5 MIPS: start.S: put entry code into the ".text_entry" section

In reply to Antony Pavlov

The ".text_bare_init" section is not intended to be used for storing entry code.

---
 arch/mips/boot/start.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/boot/start.S +1 -1
index 0828ee4927..e937e89af1 100644
@@ -20,7 +20,7 @@
 #include <asm/pbl_macros.h>
 
 	.set noreorder
-	.section ".text_bare_init"
+	.section ".text_entry"
 	.align 4
 
 EXPORT(_start)
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#6 lore raw
In reply to Antony Pavlov
Quoted 6 lines · Antony Pavlov

Antony Pavlov (5):
MIPS: start*.S: drop redundant .text
MIPS: barebox.lds.S: drop unneeded '_start = .'
MIPS: barebox.lds.S: remove unused got
MIPS: barebox.lds.S: put .text_entry contents after _stext and _text
MIPS: start.S: put entry code into the ".text_entry" section

Applied, thanks

Sascha

Quoted 15 lines
 arch/mips/boot/start-pbl.S  | 1 -
 arch/mips/boot/start.S      | 3 +--
 arch/mips/lib/barebox.lds.S | 6 +-----
 3 files changed, 2 insertions(+), 8 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox