From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephane Eranian Date: Fri, 17 Mar 2006 23:16:32 +0000 Subject: Re: PATCH: Fix gnu-efi-3.0b-041222 for ia32 Message-Id: <20060317231632.GE7835@frankl.hpl.hp.com> List-Id: References: <20060317202301.GA20807@lucon.org> In-Reply-To: <20060317202301.GA20807@lucon.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org H.J., On Fri, Mar 17, 2006 at 12:23:01PM -0800, H. J. Lu wrote: > I don't know where I should report gnu-efi bug. The ia32 support in > gnu-efi-3.0b-041222 doesn't work with newer gcc and binutils. The > problem is in the linker script. The new gcc may put functions in > .text* sections. The newer linker handles orphaned sections > differently. I tested this patch on both ia32 and ia64 with different > versions of gcc and binutils by building elilo 3.6. Elilo 3.6 loads > and run kernel correctly on ia64. It seems to work find on ia32. > As far as I know, I am still the maintainer of this package. But I need to check with some of our Linux people at HP. It is unfortunate that this package as such strong dependency of the GNU compiler and linker. This has caused a lot of troubles when all the recent updates to gcc. Yet I do not see a way around this. Once you and James ettle on the right update I'll put it in and push a new package. Thanks for tracking this down. > > H.J. > --- gnu-efi/gnuefi/elf_ia32_efi.lds.ia32 2004-12-22 07:52:28.000000000 -0800 > +++ gnu-efi/gnuefi/elf_ia32_efi.lds 2006-03-17 11:47:21.000000000 -0800 > @@ -9,7 +9,11 @@ SECTIONS > . = ALIGN(4096); > .text : > { > - *(.text) > + *(.text*) > + } > + .reloc : > + { > + *(.reloc) > } > . = ALIGN(4096); > .data : > @@ -48,12 +52,9 @@ SECTIONS > . = ALIGN(4096); > .dynstr : { *(.dynstr) } > . = ALIGN(4096); > - .ignored.reloc : > + /DISCARD/ : > { > *(.rel.reloc) > - } > - .ignored : > - { > *(.eh_frame) > } > } > --- gnu-efi/gnuefi/elf_ia64_efi.lds.ia32 2004-12-22 10:18:10.000000000 -0800 > +++ gnu-efi/gnuefi/elf_ia64_efi.lds 2006-03-17 11:51:51.000000000 -0800 > @@ -59,13 +59,10 @@ SECTIONS > .dynsym : { *(.dynsym) } > . = ALIGN(4096); > .dynstr : { *(.dynstr) } > - .ignored_reloc : > + /DISCARD/ : > { > *(.rela.plabel) > *(.rela.reloc) > - } > - /DISCARD/ : > - { > *(.IA_64.unwind*) > *(.IA64.unwind*) > } -- -Stephane