Re: [PATCH] Re: Gate DSO not building properly?

From: Ian Wienand <ianw_at_gelato.unsw.edu.au>
Date: 2003-10-23 11:52:30
On Wed, Oct 22, 2003 at 11:08:20AM -0700, David Mosberger wrote:
>   Ian> Issuing
>   Ian> .section .data.gate, "ax"
>   Ian> thus conflicts as it's assumed to be an extension of a .data
>   Ian> section.

> I'm not sure why I put "ax" there---it was most likely a left-over
> from earlier experimentation.  So I think the fix is to change "ax"
> to "aw" (the data isn't really writable, but to avoid losing more
> memory to page-alignment, it's better to keep the gate page in the
> writeable data section).  Do you want to try this?

Yep, this stops the warning and everything looks fine.  I'd say you
put it there because it gets lumped with

        .section __special_page_section,"ax"

from head.S, so in the end the whole thing ends up with AWX.

  [21] .data.page_aligne PROGBITS         a000000100610000  00620000
       0000000000008d50  0000000000000000 WAX       0     0     1

You're of course right about wasting memory with a separate section, I
didn't think of that. 

Maybe just change it and add something like 

Even though this is put with __special_page_section which is given
attributes "ax" (head.S), gas will match anything with a prefix
'.data.' as a data special section.  Thus to stop unnecessary warning
about changing attributes, we use the .data section standard
attributes "aw" when creating gate-data.o

to the changelog?

-i
ianw@gelato.unsw.edu.au
http://www.gelato.unsw.edu.au

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Wed Oct 22 21:53:33 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:19 EST