* Please revert edada399 and 9203fc9c
@ 2009-04-28 4:56 Paul Mackerras
2009-04-28 8:35 ` Sam Ravnborg
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Paul Mackerras @ 2009-04-28 4:56 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linuxppc-dev, linux-kernel, Tim Abbott
Linus,
Please revert commits edada399 ("powerpc: Use TEXT_TEXT macro in
linker script.") and 9203fc9c ("powerpc: Use __REF macro instead of
old .text.init.refok."), which depends on edada399.
Commit edada399 breaks the build because it moves the __ftr_alt_*
sections of a file away from the .text section, causing link failures
due to relative conditional branch targets being too far away from the
branch instructions. This happens on pretty much all 64-bit powerpc
configs.
Clearly these patches were never even build-tested. They were never
acked by the powerpc maintainer (Ben) - because he was on vacation -
and they weren't sent to the deputy maintainer (me) or the relevant
mailing list (linuxppc-dev).
And they are clearly not fixes for regressions or serious bugs, so why
are these patches going in after -rc3 anyway?
Paul.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Please revert edada399 and 9203fc9c
2009-04-28 4:56 Please revert edada399 and 9203fc9c Paul Mackerras
@ 2009-04-28 8:35 ` Sam Ravnborg
2009-04-28 20:52 ` Benjamin Herrenschmidt
2009-04-28 15:47 ` Tim Abbott
2009-04-29 0:22 ` Linus Torvalds
2 siblings, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2009-04-28 8:35 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev, Linus Torvalds, linux-kernel, Tim Abbott
On Tue, Apr 28, 2009 at 02:56:33PM +1000, Paul Mackerras wrote:
> Linus,
>
> Please revert commits edada399 ("powerpc: Use TEXT_TEXT macro in
> linker script.") and 9203fc9c ("powerpc: Use __REF macro instead of
> old .text.init.refok."), which depends on edada399.
>
> Commit edada399 breaks the build because it moves the __ftr_alt_*
> sections of a file away from the .text section, causing link failures
> due to relative conditional branch targets being too far away from the
> branch instructions. This happens on pretty much all 64-bit powerpc
> configs.
>
> Clearly these patches were never even build-tested. They were never
> acked by the powerpc maintainer (Ben) - because he was on vacation -
> and they weren't sent to the deputy maintainer (me) or the relevant
> mailing list (linuxppc-dev).
This is partly my fault :-(
I acked them as I did not see the issue with conditional branches.
Could I ask you to add a comment to the lds file about this.
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Please revert edada399 and 9203fc9c
2009-04-28 8:35 ` Sam Ravnborg
@ 2009-04-28 20:52 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2009-04-28 20:52 UTC (permalink / raw)
To: Sam Ravnborg
Cc: linuxppc-dev, Linus Torvalds, Paul Mackerras, linux-kernel,
Tim Abbott
On Tue, 2009-04-28 at 10:35 +0200, Sam Ravnborg wrote:
> This is partly my fault :-(
> I acked them as I did not see the issue with conditional branches.
> Could I ask you to add a comment to the lds file about this.
I'm back :-)
Not a huge deal per-se, it's just that the patches were merged in Linus
tree only a few hours after being initially submitted it seems, which
doesn't leave much chance for anybody to test, to hit -next, or anything
like that... that was a little bit too trigger happy .
Cheers,
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Please revert edada399 and 9203fc9c
2009-04-28 4:56 Please revert edada399 and 9203fc9c Paul Mackerras
2009-04-28 8:35 ` Sam Ravnborg
@ 2009-04-28 15:47 ` Tim Abbott
2009-04-29 0:22 ` Linus Torvalds
2 siblings, 0 replies; 5+ messages in thread
From: Tim Abbott @ 2009-04-28 15:47 UTC (permalink / raw)
To: Paul Mackerras; +Cc: Linus Torvalds, linux-kernel, linuxppc-dev
> Please revert commits edada399 ("powerpc: Use TEXT_TEXT macro in
> linker script.") and 9203fc9c ("powerpc: Use __REF macro instead of
> old .text.init.refok."), which depends on edada399.
Paul,
Sorry for breaking the build. I will be sure to CC you and
linuxppc-dev@ozlabs.org on future powerpc patches in this section name
cleanup project.
I think just reverting commits edada399 and 9203fc9c will cause a section
mismatch warning since commit 27b18332 removed the support code for the
.text.init.refok section. The following patch I believe should fix this
by effectively reverting just commit edada399. Can someone who has a
64-bit powerpc machine confirm?
-Tim Abbott
--
powerpc: Revert switch to TEXT_TEXT in linker script
Commit edada399 broke the build on 64-bit powerpc because it moved the
__ftr_alt_* sections of a file away from the .text section, causing
link failures due to relative conditional branch targets being too far
away from the branch instructions. This happens on pretty much all
64-bit powerpc configs.
This change reverts commit edada399 while preserving the update from
the *.refok sections to .ref.text that has happened since.
Signed-off-by: Tim Abbott <tabbott@mit.edu>
---
arch/powerpc/kernel/vmlinux.lds.S | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/vmlinux.lds.S b/arch/powerpc/kernel/vmlinux.lds.S
index 433ae11..a047a6c 100644
--- a/arch/powerpc/kernel/vmlinux.lds.S
+++ b/arch/powerpc/kernel/vmlinux.lds.S
@@ -54,8 +54,8 @@ SECTIONS
ALIGN_FUNCTION();
HEAD_TEXT
_text = .;
- TEXT_TEXT
- *(.fixup __ftr_alt_*)
+ /* careful! __ftr_alt_* sections need to be close to .text */
+ *(.text .fixup __ftr_alt_* .ref.text)
SCHED_TEXT
LOCK_TEXT
KPROBES_TEXT
--
1.6.2.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: Please revert edada399 and 9203fc9c
2009-04-28 4:56 Please revert edada399 and 9203fc9c Paul Mackerras
2009-04-28 8:35 ` Sam Ravnborg
2009-04-28 15:47 ` Tim Abbott
@ 2009-04-29 0:22 ` Linus Torvalds
2 siblings, 0 replies; 5+ messages in thread
From: Linus Torvalds @ 2009-04-29 0:22 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev, linux-kernel, Tim Abbott
On Tue, 28 Apr 2009, Paul Mackerras wrote:
>
> And they are clearly not fixes for regressions or serious bugs, so why
> are these patches going in after -rc3 anyway?
Yeah, my bad. They looked so obviously trivial, but obviously weren't.
I'm not taking any more of them.
Linus
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-04-29 0:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-28 4:56 Please revert edada399 and 9203fc9c Paul Mackerras
2009-04-28 8:35 ` Sam Ravnborg
2009-04-28 20:52 ` Benjamin Herrenschmidt
2009-04-28 15:47 ` Tim Abbott
2009-04-29 0:22 ` Linus Torvalds
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox