This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: gas bug
- To: binutils at sourceware dot cygnus dot com, expert at linux-mandrake dot com, alan at linuxcare dot com dot au
- Subject: Re: gas bug
- From: Andrew Morton <andrewm at uow dot edu dot au>
- Date: Thu, 06 Apr 2000 13:44:34 +0000
- CC: Jeff Garzik <jgarzik at mandrakesoft dot com>
- References: <38EC7631.A584EDC0@uow.edu.au>
Pretty soon, when the email he sent gets to me, Alan Modra will write:
> On Thu, 6 Apr 2000, Andrew Morton wrote:
>
> > The gas which comes with Mandrake 7.0 is generating bad code for me.
>
> Only because the source is bad :-)
>
> Here's the result of objdump --headers
> Sections:
> Idx Name Size VMA LMA File off Algn
> 0 .text 000026ff 00000000 00000000 00000034 2**2
> CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
> .
> .
> .
> 5 .text.init 00000d36 00000000 00000000 00003a04 2**2
> CONTENTS, ALLOC, LOAD, RELOC, DATA
>
> Notice that .text.init is DATA, not CODE. .align in a data section emits
> zeros, not nops.
>
>
> In the assembly file you had on the web, the first occurence of .text.init
> has:
>
> .section .text.init,"aw",@progbits
>
> The "aw" needs to be "ax".
Thanks, Alan. I really appreciate your assistance. I owe you one.
I also owe one to the person who sent me this:
static struct pci_device_id vortex_pci_tbl[] __devinit = {
instead of this:
static struct pci_device_id vortex_pci_tbl[] __devinitdata = {
You know who you are....