linux-mips
[Top] [All Lists]

Re: .section problems in entry.S

To: Kip Walker <kwalker@broadcom.com>
Subject: Re: .section problems in entry.S
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Sun, 9 Dec 2001 22:18:35 -0200
Cc: linux-mips@oss.sgi.com
In-reply-to: <3C1104D4.F700768A@broadcom.com>; from kwalker@broadcom.com on Fri, Dec 07, 2001 at 10:05:08AM -0800
References: <3C1104D4.F700768A@broadcom.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Fri, Dec 07, 2001 at 10:05:08AM -0800, Kip Walker wrote:

> I just investigated assembler warnings coming from
> arch/mips/kernel/entry.S (checked out as of 12/07 00:00 UTC), and
> noticed the following.  After expanding macros, you get something like:
> 
>       .text
> 
>       .section ".text.init"   (from __INIT)
> 
>       .data                   (from PANIC)
>       .previous               (from PANIC)
>       --> section is now .text.init
> 
>       .previous               (from __FINIT)
>       --> section is now .data, not .text as intended.
> 
> Perhaps .pushsection and .popsection should be used in some or all
> macros like this?
> 
> Or am I smoking crack?

Certainly not.  The problem is known and so far I've just hacked around
it more or less elegant.  But it's a trap and so I think we've got good
reasons to force people to upgrade to a newer assembler than the current
minimal version.  The question is which - I don't like frequent tool
upgrades.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>