All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: Build with -fno-dwarf2-cfi-asm
@ 2010-07-09 21:13 ` Michal Marek
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Marek @ 2010-07-09 21:13 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, Robert Nelson, linux-kernel

Commit d0679c7 restricted this workaround to powerpc only, but it turns
out that ARM needs it as well. Fixes
https://bugzilla.kernel.org/show_bug.cgi?id=16310 .

Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
---
 arch/arm/Makefile |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 64ba313..862d4ba 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -21,6 +21,11 @@ GZFLAGS		:=-9
 # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
 KBUILD_CFLAGS	+=$(call cc-option,-marm,)
 
+# FIXME: the module load should be taught about the additional relocs
+# generated by this.
+# revert to pre-gcc-4.4 behaviour of .eh_frame
+KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
+
 # Do not use arch/arm/defconfig - it's always outdated.
 # Select a platform tht is kept up-to-date
 KBUILD_DEFCONFIG := versatile_defconfig
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH] arm: Build with -fno-dwarf2-cfi-asm
@ 2010-07-09 21:13 ` Michal Marek
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Marek @ 2010-07-09 21:13 UTC (permalink / raw)
  To: linux-arm-kernel

Commit d0679c7 restricted this workaround to powerpc only, but it turns
out that ARM needs it as well. Fixes
https://bugzilla.kernel.org/show_bug.cgi?id=16310 .

Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
---
 arch/arm/Makefile |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 64ba313..862d4ba 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -21,6 +21,11 @@ GZFLAGS		:=-9
 # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
 KBUILD_CFLAGS	+=$(call cc-option,-marm,)
 
+# FIXME: the module load should be taught about the additional relocs
+# generated by this.
+# revert to pre-gcc-4.4 behaviour of .eh_frame
+KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
+
 # Do not use arch/arm/defconfig - it's always outdated.
 # Select a platform tht is kept up-to-date
 KBUILD_DEFCONFIG := versatile_defconfig
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH] arm: Build with -fno-dwarf2-cfi-asm
  2010-07-09 21:13 ` Michal Marek
@ 2010-07-10 13:02   ` Mikael Pettersson
  -1 siblings, 0 replies; 10+ messages in thread
From: Mikael Pettersson @ 2010-07-10 13:02 UTC (permalink / raw)
  To: Michal Marek; +Cc: Russell King, Robert Nelson, linux-kernel, linux-arm-kernel

Michal Marek writes:
 > Commit d0679c7 restricted this workaround to powerpc only, but it turns
 > out that ARM needs it as well. Fixes
 > https://bugzilla.kernel.org/show_bug.cgi?id=16310 .
 > 
 > Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
 > Signed-off-by: Michal Marek <mmarek@suse.cz>
 > ---
 >  arch/arm/Makefile |    5 +++++
 >  1 files changed, 5 insertions(+), 0 deletions(-)
 > 
 > diff --git a/arch/arm/Makefile b/arch/arm/Makefile
 > index 64ba313..862d4ba 100644
 > --- a/arch/arm/Makefile
 > +++ b/arch/arm/Makefile
 > @@ -21,6 +21,11 @@ GZFLAGS		:=-9
 >  # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
 >  KBUILD_CFLAGS	+=$(call cc-option,-marm,)
 >  
 > +# FIXME: the module load should be taught about the additional relocs
 > +# generated by this.
 > +# revert to pre-gcc-4.4 behaviour of .eh_frame
 > +KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)

Appears related to gcc PR40521, which should be fixed in gcc-4.4.3,
though it may have been re-broken in gcc-4.5.0 for in a corner case
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521#c24> that may or
may not apply to the kernel.  There's also a related binutils issue.

The above fix seems appropriate, but the FIXME comment seems wrong:
this is about getting the right kind of exception unwind tables in
the entire kernel, not just relocs in modules.

The comment should just say:
# Never generate .eh_frame:

So for the fix without the comment part:

Acked-by: Mikael Pettersson <mikpe@it.uu.se>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] arm: Build with -fno-dwarf2-cfi-asm
@ 2010-07-10 13:02   ` Mikael Pettersson
  0 siblings, 0 replies; 10+ messages in thread
From: Mikael Pettersson @ 2010-07-10 13:02 UTC (permalink / raw)
  To: linux-arm-kernel

Michal Marek writes:
 > Commit d0679c7 restricted this workaround to powerpc only, but it turns
 > out that ARM needs it as well. Fixes
 > https://bugzilla.kernel.org/show_bug.cgi?id=16310 .
 > 
 > Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
 > Signed-off-by: Michal Marek <mmarek@suse.cz>
 > ---
 >  arch/arm/Makefile |    5 +++++
 >  1 files changed, 5 insertions(+), 0 deletions(-)
 > 
 > diff --git a/arch/arm/Makefile b/arch/arm/Makefile
 > index 64ba313..862d4ba 100644
 > --- a/arch/arm/Makefile
 > +++ b/arch/arm/Makefile
 > @@ -21,6 +21,11 @@ GZFLAGS		:=-9
 >  # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
 >  KBUILD_CFLAGS	+=$(call cc-option,-marm,)
 >  
 > +# FIXME: the module load should be taught about the additional relocs
 > +# generated by this.
 > +# revert to pre-gcc-4.4 behaviour of .eh_frame
 > +KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)

Appears related to gcc PR40521, which should be fixed in gcc-4.4.3,
though it may have been re-broken in gcc-4.5.0 for in a corner case
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521#c24> that may or
may not apply to the kernel.  There's also a related binutils issue.

The above fix seems appropriate, but the FIXME comment seems wrong:
this is about getting the right kind of exception unwind tables in
the entire kernel, not just relocs in modules.

The comment should just say:
# Never generate .eh_frame:

So for the fix without the comment part:

Acked-by: Mikael Pettersson <mikpe@it.uu.se>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] arm: Build with -fno-dwarf2-cfi-asm
  2010-07-10 13:02   ` Mikael Pettersson
@ 2010-07-26 13:04     ` Michal Marek
  -1 siblings, 0 replies; 10+ messages in thread
From: Michal Marek @ 2010-07-26 13:04 UTC (permalink / raw)
  To: Russell King
  Cc: Mikael Pettersson, Robert Nelson, linux-kernel, linux-arm-kernel

On 10.7.2010 15:02, Mikael Pettersson wrote:
> Michal Marek writes:
>  > Commit d0679c7 restricted this workaround to powerpc only, but it turns
>  > out that ARM needs it as well. Fixes
>  > https://bugzilla.kernel.org/show_bug.cgi?id=16310 .
>  > 
>  > Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
>  > Signed-off-by: Michal Marek <mmarek@suse.cz>
>  > ---
>  >  arch/arm/Makefile |    5 +++++
>  >  1 files changed, 5 insertions(+), 0 deletions(-)
>  > 
>  > diff --git a/arch/arm/Makefile b/arch/arm/Makefile
>  > index 64ba313..862d4ba 100644
>  > --- a/arch/arm/Makefile
>  > +++ b/arch/arm/Makefile
>  > @@ -21,6 +21,11 @@ GZFLAGS		:=-9
>  >  # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
>  >  KBUILD_CFLAGS	+=$(call cc-option,-marm,)
>  >  
>  > +# FIXME: the module load should be taught about the additional relocs
>  > +# generated by this.
>  > +# revert to pre-gcc-4.4 behaviour of .eh_frame
>  > +KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
> 
> Appears related to gcc PR40521, which should be fixed in gcc-4.4.3,
> though it may have been re-broken in gcc-4.5.0 for in a corner case
> <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521#c24> that may or
> may not apply to the kernel.  There's also a related binutils issue.
> 
> The above fix seems appropriate, but the FIXME comment seems wrong:
> this is about getting the right kind of exception unwind tables in
> the entire kernel, not just relocs in modules.
> 
> The comment should just say:
> # Never generate .eh_frame:
> 
> So for the fix without the comment part:
> 
> Acked-by: Mikael Pettersson <mikpe@it.uu.se>

Hi Russell,

should I resend the patch with the comment by Mikael?

Thanks,
Michal

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] arm: Build with -fno-dwarf2-cfi-asm
@ 2010-07-26 13:04     ` Michal Marek
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Marek @ 2010-07-26 13:04 UTC (permalink / raw)
  To: linux-arm-kernel

On 10.7.2010 15:02, Mikael Pettersson wrote:
> Michal Marek writes:
>  > Commit d0679c7 restricted this workaround to powerpc only, but it turns
>  > out that ARM needs it as well. Fixes
>  > https://bugzilla.kernel.org/show_bug.cgi?id=16310 .
>  > 
>  > Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
>  > Signed-off-by: Michal Marek <mmarek@suse.cz>
>  > ---
>  >  arch/arm/Makefile |    5 +++++
>  >  1 files changed, 5 insertions(+), 0 deletions(-)
>  > 
>  > diff --git a/arch/arm/Makefile b/arch/arm/Makefile
>  > index 64ba313..862d4ba 100644
>  > --- a/arch/arm/Makefile
>  > +++ b/arch/arm/Makefile
>  > @@ -21,6 +21,11 @@ GZFLAGS		:=-9
>  >  # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
>  >  KBUILD_CFLAGS	+=$(call cc-option,-marm,)
>  >  
>  > +# FIXME: the module load should be taught about the additional relocs
>  > +# generated by this.
>  > +# revert to pre-gcc-4.4 behaviour of .eh_frame
>  > +KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
> 
> Appears related to gcc PR40521, which should be fixed in gcc-4.4.3,
> though it may have been re-broken in gcc-4.5.0 for in a corner case
> <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521#c24> that may or
> may not apply to the kernel.  There's also a related binutils issue.
> 
> The above fix seems appropriate, but the FIXME comment seems wrong:
> this is about getting the right kind of exception unwind tables in
> the entire kernel, not just relocs in modules.
> 
> The comment should just say:
> # Never generate .eh_frame:
> 
> So for the fix without the comment part:
> 
> Acked-by: Mikael Pettersson <mikpe@it.uu.se>

Hi Russell,

should I resend the patch with the comment by Mikael?

Thanks,
Michal

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] arm: Build with -fno-dwarf2-cfi-asm
  2010-07-26 13:04     ` Michal Marek
@ 2010-07-26 13:11       ` Russell King - ARM Linux
  -1 siblings, 0 replies; 10+ messages in thread
From: Russell King - ARM Linux @ 2010-07-26 13:11 UTC (permalink / raw)
  To: Michal Marek
  Cc: Mikael Pettersson, Robert Nelson, linux-kernel, linux-arm-kernel

On Mon, Jul 26, 2010 at 03:04:18PM +0200, Michal Marek wrote:
> On 10.7.2010 15:02, Mikael Pettersson wrote:
> > Michal Marek writes:
> >  > Commit d0679c7 restricted this workaround to powerpc only, but it turns
> >  > out that ARM needs it as well. Fixes
> >  > https://bugzilla.kernel.org/show_bug.cgi?id=16310 .
> >  > 
> >  > Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
> >  > Signed-off-by: Michal Marek <mmarek@suse.cz>
> >  > ---
> >  >  arch/arm/Makefile |    5 +++++
> >  >  1 files changed, 5 insertions(+), 0 deletions(-)
> >  > 
> >  > diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> >  > index 64ba313..862d4ba 100644
> >  > --- a/arch/arm/Makefile
> >  > +++ b/arch/arm/Makefile
> >  > @@ -21,6 +21,11 @@ GZFLAGS		:=-9
> >  >  # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
> >  >  KBUILD_CFLAGS	+=$(call cc-option,-marm,)
> >  >  
> >  > +# FIXME: the module load should be taught about the additional relocs
> >  > +# generated by this.
> >  > +# revert to pre-gcc-4.4 behaviour of .eh_frame
> >  > +KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
> > 
> > Appears related to gcc PR40521, which should be fixed in gcc-4.4.3,
> > though it may have been re-broken in gcc-4.5.0 for in a corner case
> > <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521#c24> that may or
> > may not apply to the kernel.  There's also a related binutils issue.
> > 
> > The above fix seems appropriate, but the FIXME comment seems wrong:
> > this is about getting the right kind of exception unwind tables in
> > the entire kernel, not just relocs in modules.
> > 
> > The comment should just say:
> > # Never generate .eh_frame:
> > 
> > So for the fix without the comment part:
> > 
> > Acked-by: Mikael Pettersson <mikpe@it.uu.se>
> 
> Hi Russell,
> 
> should I resend the patch with the comment by Mikael?

Yes please - and please put it in the patch system.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH] arm: Build with -fno-dwarf2-cfi-asm
@ 2010-07-26 13:11       ` Russell King - ARM Linux
  0 siblings, 0 replies; 10+ messages in thread
From: Russell King - ARM Linux @ 2010-07-26 13:11 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Jul 26, 2010 at 03:04:18PM +0200, Michal Marek wrote:
> On 10.7.2010 15:02, Mikael Pettersson wrote:
> > Michal Marek writes:
> >  > Commit d0679c7 restricted this workaround to powerpc only, but it turns
> >  > out that ARM needs it as well. Fixes
> >  > https://bugzilla.kernel.org/show_bug.cgi?id=16310 .
> >  > 
> >  > Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
> >  > Signed-off-by: Michal Marek <mmarek@suse.cz>
> >  > ---
> >  >  arch/arm/Makefile |    5 +++++
> >  >  1 files changed, 5 insertions(+), 0 deletions(-)
> >  > 
> >  > diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> >  > index 64ba313..862d4ba 100644
> >  > --- a/arch/arm/Makefile
> >  > +++ b/arch/arm/Makefile
> >  > @@ -21,6 +21,11 @@ GZFLAGS		:=-9
> >  >  # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
> >  >  KBUILD_CFLAGS	+=$(call cc-option,-marm,)
> >  >  
> >  > +# FIXME: the module load should be taught about the additional relocs
> >  > +# generated by this.
> >  > +# revert to pre-gcc-4.4 behaviour of .eh_frame
> >  > +KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
> > 
> > Appears related to gcc PR40521, which should be fixed in gcc-4.4.3,
> > though it may have been re-broken in gcc-4.5.0 for in a corner case
> > <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40521#c24> that may or
> > may not apply to the kernel.  There's also a related binutils issue.
> > 
> > The above fix seems appropriate, but the FIXME comment seems wrong:
> > this is about getting the right kind of exception unwind tables in
> > the entire kernel, not just relocs in modules.
> > 
> > The comment should just say:
> > # Never generate .eh_frame:
> > 
> > So for the fix without the comment part:
> > 
> > Acked-by: Mikael Pettersson <mikpe@it.uu.se>
> 
> Hi Russell,
> 
> should I resend the patch with the comment by Mikael?

Yes please - and please put it in the patch system.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v2] arm: Build with -fno-dwarf2-cfi-asm
  2010-07-26 13:11       ` Russell King - ARM Linux
@ 2010-07-26 13:28         ` Michal Marek
  -1 siblings, 0 replies; 10+ messages in thread
From: Michal Marek @ 2010-07-26 13:28 UTC (permalink / raw)
  To: Russell King
  Cc: Robert Nelson, Mikael Pettersson, linux-kernel, linux-arm-kernel

Commit d0679c7 restricted this workaround to powerpc only, but it turns
out that ARM needs it as well. Fixes
https://bugzilla.kernel.org/show_bug.cgi?id=16310 .

Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
Acked-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Michal Marek <mmarek@suse.cz>
---

v2: changed commend as suggested by Mikael

---
 arch/arm/Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 64ba313..730d40c 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -21,6 +21,9 @@ GZFLAGS		:=-9
 # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
 KBUILD_CFLAGS	+=$(call cc-option,-marm,)
 
+# Never generate .eh_frame
+KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
+
 # Do not use arch/arm/defconfig - it's always outdated.
 # Select a platform tht is kept up-to-date
 KBUILD_DEFCONFIG := versatile_defconfig
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v2] arm: Build with -fno-dwarf2-cfi-asm
@ 2010-07-26 13:28         ` Michal Marek
  0 siblings, 0 replies; 10+ messages in thread
From: Michal Marek @ 2010-07-26 13:28 UTC (permalink / raw)
  To: linux-arm-kernel

Commit d0679c7 restricted this workaround to powerpc only, but it turns
out that ARM needs it as well. Fixes
https://bugzilla.kernel.org/show_bug.cgi?id=16310 .

Reported-and-Tested-by: Robert Nelson <robertcnelson@gmail.com>
Acked-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Michal Marek <mmarek@suse.cz>
---

v2: changed commend as suggested by Mikael

---
 arch/arm/Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 64ba313..730d40c 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -21,6 +21,9 @@ GZFLAGS		:=-9
 # Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb:
 KBUILD_CFLAGS	+=$(call cc-option,-marm,)
 
+# Never generate .eh_frame
+KBUILD_CFLAGS	+= $(call cc-option,-fno-dwarf2-cfi-asm)
+
 # Do not use arch/arm/defconfig - it's always outdated.
 # Select a platform tht is kept up-to-date
 KBUILD_DEFCONFIG := versatile_defconfig
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-07-26 13:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-09 21:13 [PATCH] arm: Build with -fno-dwarf2-cfi-asm Michal Marek
2010-07-09 21:13 ` Michal Marek
2010-07-10 13:02 ` Mikael Pettersson
2010-07-10 13:02   ` Mikael Pettersson
2010-07-26 13:04   ` Michal Marek
2010-07-26 13:04     ` Michal Marek
2010-07-26 13:11     ` Russell King - ARM Linux
2010-07-26 13:11       ` Russell King - ARM Linux
2010-07-26 13:28       ` [PATCH v2] " Michal Marek
2010-07-26 13:28         ` Michal Marek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.