PowerPC: Add relocation support for -fpic
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 1/2 PowerPC: Add relocation support for -fpic
Quoted 5 lines
By rearranging the linker script we get support for relocation of -fpic for free.
Signed-off-by Joakim Tjernlund <[email protected]>
Ping?
PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic
In reply to Joakim TjernlundBy 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
@@ -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
@@ -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
@@ -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
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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPCSigned-off-by Joakim Tjernlund <[email protected]>
Ping?
PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic
In reply to Joakim TjernlundQuoted 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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPC
Quoted 7 lines
Signed-off-by Joakim Tjernlund <[email protected]>--- 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
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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPCQuoted 7 lines
Signed-off-by Joakim Tjernlund <[email protected]>--- 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:
Acked-by Scott Wood <[email protected]>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
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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPCQuoted 7 lines
Signed-off-by Joakim Tjernlund <[email protected]>--- 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:
Acked-by Scott Wood <[email protected]>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.
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_spldoes 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
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_spldoes 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
PATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic
In reply to Scott WoodQuoted 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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPCSigned-off-by Joakim Tjernlund <[email protected]>--- 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:
Acked-by Scott Wood <[email protected]>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
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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPCSigned-off-by Joakim Tjernlund <[email protected]>--- 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:
Acked-by Scott Wood <[email protected]>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:
Acked-by Kim Phillips <[email protected]>
Great! then we got:
[PATCH] PowerPC: Move -fPIC flag to common place [PATCH] PowerPC: Add support for -msingle-pic-base
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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPCSigned-off-by Joakim Tjernlund <[email protected]>--- 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:
Acked-by Scott Wood <[email protected]>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:
Acked-by Kim Phillips <[email protected]>
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
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-baseHow 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
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-baseHow 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
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-baseHow 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
Wolfgang Denk
AppliedPATCH 2/2 PowerPC, nand_spl: Add relocation support for -fpic
In reply to Joakim TjernlundDear 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_entriesoutside _GOT2_TABLE_ defining scope matching the rest of PowerPCSigned-off-by Joakim Tjernlund <[email protected]>--- 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
Wolfgang Denk
AppliedPATCH 1/2 PowerPC: Add relocation support for -fpic
In reply to Joakim TjernlundDear Joakim Tjernlund,
Quoted 4 lines · In message <[email protected]>…
By rearranging the linker script we get support for relocation of -fpic for free.
Signed-off-by Joakim Tjernlund <[email protected]>
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.