Re: [PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-24 Thread Kyle McMartin
On Wed, Feb 25, 2009 at 06:47:07AM +0100, Sam Ravnborg wrote: > > On ppc64 (at least) gcc-4.4 is defaulting to generating .eh_frame > > sections, which are, for the kernel, fairly pointless. Additionally, on > > ppc64 this generates a relocation format which the kernel module loader > > does not cu

Re: [PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-24 Thread Sam Ravnborg
On Tue, Feb 24, 2009 at 01:51:12AM -0500, Kyle McMartin wrote: > From: Kyle McMartin > > On ppc64 (at least) gcc-4.4 is defaulting to generating .eh_frame > sections, which are, for the kernel, fairly pointless. Additionally, on > ppc64 this generates a relocation format which the kernel module l

Re: [PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-24 Thread Roland McGrath
The patch is right though the log entry and comment are perhaps misleading. The effect of the patch is to restore the compiler behavior to what it was before. What it was before includes cases of producing .eh_frame and cases of not producing it. The default behavior of a gcc-4.4 that was built a

Re: [PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-24 Thread Kyle McMartin
On Tue, Feb 24, 2009 at 09:40:34AM +0100, Sam Ravnborg wrote: > x86 has a specific ".section .eh_frame,"a",@progbits" in vdso32/int80.S as > one example. > > Have you analyzed all these hits? > These aren't effected by the patch. All the occurances of it inside the kernel are explicitly written

Re: [PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-24 Thread Alexandre Oliva
On Feb 24, 2009, Sam Ravnborg wrote: > On Tue, Feb 24, 2009 at 01:51:12AM -0500, Kyle McMartin wrote: >> From: Kyle McMartin >> >> On ppc64 (at least) gcc-4.4 is defaulting to generating .eh_frame >> sections, which are, for the kernel, fairly pointless. Additionally, on >> ppc64 this generates

Re: [PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-24 Thread Sam Ravnborg
On Tue, Feb 24, 2009 at 01:51:12AM -0500, Kyle McMartin wrote: > From: Kyle McMartin > > On ppc64 (at least) gcc-4.4 is defaulting to generating .eh_frame > sections, which are, for the kernel, fairly pointless. Additionally, on > ppc64 this generates a relocation format which the kernel module l

[PATCH/RFC] powerpc: avoid generating .eh_frame sections with gcc-4.4

2009-02-23 Thread Kyle McMartin
From: Kyle McMartin On ppc64 (at least) gcc-4.4 is defaulting to generating .eh_frame sections, which are, for the kernel, fairly pointless. Additionally, on ppc64 this generates a relocation format which the kernel module loader does not currently support (R_PPC64_REL32.) Alexandre Oliva verifi