Skip to contentSkip to conversation

PowerPC: Add relocation support for -fpic

PATCH New Joakim Tjernlund 4 participants 17 messages Dec 3, 2010 – Jan 12, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 PowerPC: Add relocation support for -fpic

By rearranging the linker script we get support for relocation of -fpic for free.

---
 arch/powerpc/cpu/74xx_7xx/u-boot.lds |    5 +++--
 arch/powerpc/cpu/mpc512x/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc5xx/u-boot.lds   |    5 +++--
 arch/powerpc/cpu/mpc5xxx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc8220/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc824x/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc8260/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc83xx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc85xx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc86xx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/ppc4xx/u-boot.lds   |    5 +++--
 11 files changed, 33 insertions(+), 22 deletions(-)
arch/powerpc/cpu/74xx_7xx/u-boot.lds +3 -2
index 771a845..8429f33 100644
@@ -43,13 +43,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_)>>2;
 
   .data    :
arch/powerpc/cpu/mpc512x/u-boot.lds +3 -2
index 361e714..ab9303f 100644
@@ -37,14 +37,15 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
     *(.fixup)
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/mpc5xx/u-boot.lds +3 -2
index b7fd4bc..69bd7aa 100644
@@ -46,13 +46,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_)>>2;
 
   .data    :
arch/powerpc/cpu/mpc5xxx/u-boot.lds +3 -2
index eeeff6c..7e3b70a 100644
@@ -41,13 +41,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/mpc8220/u-boot.lds +3 -2
index 63cbbd7..72ff671 100644
@@ -40,13 +40,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/mpc824x/u-boot.lds +3 -2
index e7f2837..3b9299c 100644
@@ -41,13 +41,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/mpc8260/u-boot.lds +3 -2
index ad2ce37..c76555e 100644
@@ -40,13 +40,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/mpc83xx/u-boot.lds +3 -2
index 81a7ace..752a175 100644
@@ -39,13 +39,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/mpc85xx/u-boot.lds +3 -2
index 85042c5..67d7763 100644
@@ -54,13 +54,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/mpc86xx/u-boot.lds +3 -2
index 49a4c78..c550ef5 100644
@@ -45,13 +45,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
arch/powerpc/cpu/ppc4xx/u-boot.lds +3 -2
index dac0e5b..ee9cd81 100644
@@ -55,13 +55,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >> 2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
 
   .data    :
Signature · 1 line
1.7.2.2
#2 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

In reply to Joakim Tjernlund

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
nand_spl/board/freescale/mpc8313erdb/u-boot.lds +3 -1
index 138e427..f1649f8 100644
@@ -39,8 +39,10 @@ SECTIONS
 		*(.sdata*)
 		_GOT2_TABLE_ = .;
 		KEEP(*(.got2))
-		__got2_entries = (. - _GOT2_TABLE_) >> 2;
+		KEEP(*(.got))
+		PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
 	}
+	__got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
 
 	. = ALIGN(8);
 	__bss_start = .;
nand_spl/board/freescale/mpc8315erdb/u-boot.lds +3 -1
index 138e427..f1649f8 100644
@@ -39,8 +39,10 @@ SECTIONS
 		*(.sdata*)
 		_GOT2_TABLE_ = .;
 		KEEP(*(.got2))
-		__got2_entries = (. - _GOT2_TABLE_) >> 2;
+		KEEP(*(.got))
+		PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
 	}
+	__got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
 
 	. = ALIGN(8);
 	__bss_start = .;
nand_spl/board/sheldon/simpc8313/u-boot.lds +3 -1
index ad82589..1da4287 100644
@@ -40,8 +40,10 @@ SECTIONS
 		*(.sdata*)
 		_GOT2_TABLE_ = .;
 		*(.got2)
-		__got2_entries = (. - _GOT2_TABLE_) >> 2;
+		KEEP(*(.got))
+		PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
 	}
+	__got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
 
 	. = ALIGN(8);
 	__bss_start = .;
Signature · 1 line
1.7.2.2
#3 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Quoted 7 lines

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

Ping?

#4 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

In reply to Joakim Tjernlund
Quoted 5 lines · On Fri, 3 Dec 2010 10:30:38 -0600 "Joakim Tjernlund"…

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

Quoted 7 lines
---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

Were you able to boot test it on at least one of the boards?

If so:

if Kim wants to take both of them.

If not, is there anything special I need to test it (specific toolchain?) besides these two patches?

-Scott

#5 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Quoted 19 lines
Quoted 5 lines · On Fri, 3 Dec 2010 10:30:38 -0600 "Joakim Tjernlund"…

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

Quoted 7 lines
---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
Quoted 1 line

Were you able to boot test it on at least one of the boards?

nope, I don't have any of them. Just my own 8321 board.

Quoted 7 lines

If so:

if Kim wants to take both of them.

If not, is there anything special I need to test it (specific toolchain?) besides these two patches?

No, not yet. The real benefit comes in later patches. Just makes sure it works as before.

Jocke

#6 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Quoted 29 lines
Quoted 20 lines
Quoted 5 lines · On Fri, 3 Dec 2010 10:30:38 -0600 "Joakim Tjernlund"…

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

Quoted 7 lines
---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
Quoted 1 line

Were you able to boot test it on at least one of the boards?

nope, I don't have any of them. Just my own 8321 board.

Quoted 5 lines

If so:

if Kim wants to take both of them.

Quoted 5 lines
Quoted 2 lines

If not, is there anything special I need to test it (specific toolchain?) besides these two patches?

No, not yet. The real benefit comes in later patches. Just makes sure it works as before.

Well, one thing should work now. nand_spl does not use fixups so you should be able to remove -mrelocatable and just use -fpic.

#7 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Quoted 5 lines · On Thu, 9 Dec 2010 21:30:16 +0100 Joakim Tjernlund…
Quoted 5 lines
Quoted 2 lines

If not, is there anything special I need to test it (specific toolchain?) besides these two patches?

No, not yet. The real benefit comes in later patches. Just makes sure it works as before.

I applied those two patches on top of next, and it boots OK.

I added -fpic to PLATFORM_RELFLAGS, still boots OK.

Quoted 2 lines

Well, one thing should work now. nand_spl does not use fixups so you should be able to remove -mrelocatable and just use -fpic.

If I remove -mrelocatable (with or without -fpic in place) I get
ERROR: Your compiler doesn't generate .fixup sections!
Upgrade to a recent toolchain.

I see this with GCC 4.3.2 and GCC 4.5.1.

-Scott

#8 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Scott Wood <[email protected]> wrote on 2010/12/10 21:34:59:

Quoted 12 lines
Quoted 5 lines · On Thu, 9 Dec 2010 21:30:16 +0100 Joakim Tjernlund…
Quoted 5 lines
Quoted 2 lines

If not, is there anything special I need to test it (specific toolchain?) besides these two patches?

No, not yet. The real benefit comes in later patches. Just makes sure it works as before.

I applied those two patches on top of next, and it boots OK.

Quoted 8 lines

I added -fpic to PLATFORM_RELFLAGS, still boots OK.

Quoted 2 lines

Well, one thing should work now. nand_spl does not use fixups so you should be able to remove -mrelocatable and just use -fpic.

If I remove -mrelocatable (with or without -fpic in place) I get
ERROR: Your compiler doesn't generate .fixup sections!
Upgrade to a recent toolchain.

Seems like nand_spl borrows the Makefile under arch/powerpc/ which won't work as the normal powerpc boards needs .fixups and has a test for that.
In addition the test is a bit flawed, it checks the object files for .fixups instead of checking the toolchain.
Obviously this will have to be fixed before one can remove -mrelocatable just for nand_spl. On the other hand, removing -mrelocatable won't be needed when you use my gcc patches which will be in gcc 4.6

#9 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

In reply to Scott Wood
Quoted 15 lines · On Thu, 9 Dec 2010 13:02:58 -0600 Scott Wood <[email protected]> wrote:
Quoted 11 lines · On Fri, 3 Dec 2010 10:30:38 -0600 "Joakim Tjernlund"…

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
Quoted 5 lines

Were you able to boot test it on at least one of the boards?

If so:

if Kim wants to take both of them.

patch 1 out of 2 goes outside the 83xx domain; defaulting to Wolfgang to pick up both, with my:

Thanks,

Kim

#10 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Kim Phillips <[email protected]> wrote on 2010/12/14 00:05:11:

Quoted 20 lines
Quoted 17 lines · On Thu, 9 Dec 2010 13:02:58 -0600 Scott Wood <[email protected]> wrote:
Quoted 11 lines · On Fri, 3 Dec 2010 10:30:38 -0600 "Joakim Tjernlund"…

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

Were you able to boot test it on at least one of the boards?

Quoted 8 lines
Quoted 3 lines

If so:

if Kim wants to take both of them.

patch 1 out of 2 goes outside the 83xx domain; defaulting to Wolfgang to pick up both, with my:

Great! then we got:
[PATCH] PowerPC: Move -fPIC flag to common place [PATCH] PowerPC: Add support for -msingle-pic-base

#11 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Quoted 30 lines

Kim Phillips <[email protected]> wrote on 2010/12/14 00:05:11:

Quoted 28 lines
Quoted 15 lines · On Thu, 9 Dec 2010 13:02:58 -0600 Scott Wood <[email protected]> wrote:
Quoted 11 lines · On Fri, 3 Dec 2010 10:30:38 -0600 "Joakim Tjernlund"…

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)
Quoted 5 lines

Were you able to boot test it on at least one of the boards?

If so:

if Kim wants to take both of them.

patch 1 out of 2 goes outside the 83xx domain; defaulting to Wolfgang to pick up both, with my:

These seems forgotten?

Quoted 4 lines

Great! then we got:
[PATCH] PowerPC: Move -fPIC flag to common place [PATCH] PowerPC: Add support for -msingle-pic-base

How about the above 2 patches?

Jocke

#12 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Dear Joakim Tjernlund,

Quoted 6 lines · In message <OF3301F88E.E61F6369-ONC12577FC.00573EBC-C12577FC.00576AF2@transmode…
Quoted 4 lines

Great! then we got:
[PATCH] PowerPC: Move -fPIC flag to common place [PATCH] PowerPC: Add support for -msingle-pic-base

How about the above 2 patches?

I think I have them on my list for "next", but I got other things to do first.

This will definitely not go into v2010.12.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
... The prejudices people feel about each other disappear  when  then
get to know each other.
	-- Kirk, "Elaan of Troyius", stardate 4372.5
#13 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Wolfgang Denk <[email protected]> wrote on 2010/12/17 17:13:47:

Quoted 5 lines

Dear Joakim Tjernlund,

Quoted 1 line · In message <OF3301F88E.E61F6369-ONC12577FC.00573EBC-C12577FC.00576AF2@transmode…
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Great! then we got:
[PATCH] PowerPC: Move -fPIC flag to common place [PATCH] PowerPC: Add support for -msingle-pic-base

How about the above 2 patches?

I think I have them on my list for "next", but I got other things to do first.

OK, not forgotten then. Good.

Quoted 2 lines

This will definitely not go into v2010.12.

Sure, that was not my intention either.

Jocke

#14 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

Quoted 15 lines

Wolfgang Denk <[email protected]> wrote on 2010/12/17 17:13:47:

Quoted 5 lines

Dear Joakim Tjernlund,

Quoted 1 line · In message <OF3301F88E.E61F6369-ONC12577FC.00573EBC-C12577FC.00576AF2@transmode…
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Great! then we got:
[PATCH] PowerPC: Move -fPIC flag to common place [PATCH] PowerPC: Add support for -msingle-pic-base

How about the above 2 patches?

I think I have them on my list for "next", but I got other things to do first.

Quoted 6 lines

OK, not forgotten then. Good.

Quoted 2 lines

This will definitely not go into v2010.12.

Sure, that was not my intention either.

hmm, no word on the above two patches yet.

Jocke

#15 lore raw

PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic

In reply to Joakim Tjernlund

Dear Joakim Tjernlund,

Quoted 11 lines · In message <[email protected]>…

By rearranging the linker script we get support for relocation of -fpic for free.
Move __got2_entries outside _GOT2_TABLE_ defining scope matching the rest of PowerPC

---
 nand_spl/board/freescale/mpc8313erdb/u-boot.lds |    4 +++-
 nand_spl/board/freescale/mpc8315erdb/u-boot.lds |    4 +++-
 nand_spl/board/sheldon/simpc8313/u-boot.lds     |    4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

Applied to "next", thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Too much of anything, even love, isn't necessarily a good thing.
	-- Kirk, "The Trouble with Tribbles", stardate 4525.6
#16 lore raw

PATCH 1/2 PowerPC: Add relocation support for -fpic

In reply to Joakim Tjernlund

Dear Joakim Tjernlund,

Quoted 4 lines · In message <[email protected]>…

By rearranging the linker script we get support for relocation of -fpic for free.

Quoted 13 lines
---
 arch/powerpc/cpu/74xx_7xx/u-boot.lds |    5 +++--
 arch/powerpc/cpu/mpc512x/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc5xx/u-boot.lds   |    5 +++--
 arch/powerpc/cpu/mpc5xxx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc8220/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc824x/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc8260/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc83xx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc85xx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/mpc86xx/u-boot.lds  |    5 +++--
 arch/powerpc/cpu/ppc4xx/u-boot.lds   |    5 +++--
 11 files changed, 33 insertions(+), 22 deletions(-)

Applied to "next", thanks.

Best regards,

Wolfgang Denk

Signature · 7 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Niklaus Wirth has lamented that, whereas Europeans pronounce his name
correctly  (Ni-klows  Virt),  Americans  invariably  mangle  it  into
(Nick-les  Worth).  Which  is to say that Europeans call him by name,
but Americans call him by value.