From: "H. J. Lu" <hjl@lucon.org>
To: linux-ia64@vger.kernel.org
Subject: Re: heads up: apparent GAS bug in current (CVS) binutils
Date: Fri, 13 May 2005 20:50:04 +0000 [thread overview]
Message-ID: <20050513205004.GB30928@lucon.org> (raw)
In-Reply-To: <200505122155.j4CLteGX024882@napali.hpl.hp.com>
On Fri, May 13, 2005 at 01:34:10PM -0700, David Mosberger wrote:
> >>>>> On Fri, 13 May 2005 10:32:19 -0700, "Lu, Hongjiu" <hongjiu.lu@intel.com> said:
>
> HJ> I tried binutils 2.15.92.0.2 20040927 and got the same
> HJ> result. What is the version of assembler which you think is
> HJ> good?
>
> The standard Debian/sarge as seems fine:
>
> $ as -v
> GNU assembler version 2.15 (ia64-linux) using BFD version 2.15
>
As I have mentioned before, it is an IPF specific kernel issue.
Basically, when you use weak functions, unwind info may be wrong.
I am enclosing an updated kernel patch.
H.J.
--- linux/arch/ia64/kernel/irq.c.weak 2005-05-10 13:52:00.000000000 -0700
+++ linux/arch/ia64/kernel/irq.c 2005-05-13 13:18:36.000000000 -0700
@@ -103,7 +103,9 @@ static char irq_redir [NR_IRQS]; // = {
* Arch specific routine for deferred write to iosapic rte to reprogram
* intr destination.
*/
-void proc_set_irq_affinity(unsigned int irq, cpumask_t mask_val)
+void
+__comdatfunc (proc_set_irq_affinity)
+proc_set_irq_affinity(unsigned int irq, cpumask_t mask_val)
{
pending_irq_cpumask[irq] = mask_val;
}
--- linux/arch/ia64/kernel/smpboot.c.weak 2005-05-10 13:52:00.000000000 -0700
+++ linux/arch/ia64/kernel/smpboot.c 2005-05-13 13:18:57.000000000 -0700
@@ -404,7 +404,9 @@ start_secondary (void *unused)
return 0;
}
-struct pt_regs * __devinit idle_regs(struct pt_regs *regs)
+struct pt_regs *
+__devinit __comdatfunc (idle_regs)
+idle_regs(struct pt_regs *regs)
{
return NULL;
}
--- linux/include/linux/compiler.h.weak 2005-05-10 13:52:00.000000000 -0700
+++ linux/include/linux/compiler.h 2005-05-13 13:20:14.000000000 -0700
@@ -155,4 +155,9 @@ extern void __chk_io_ptr(void __iomem *)
#define __always_inline inline
#endif
+#ifndef __comdatfunc
+#define __comdatfunc(f) \
+ __attribute__ ((__section__ (".gnu.linkonce.t." #f )))
+#endif
+
#endif /* __LINUX_COMPILER_H */
--- linux/kernel/fork.c.weak 2005-05-10 13:52:00.000000000 -0700
+++ linux/kernel/fork.c 2005-05-13 13:19:40.000000000 -0700
@@ -1148,7 +1148,9 @@ bad_fork_free:
goto fork_out;
}
-struct pt_regs * __devinit __attribute__((weak)) idle_regs(struct pt_regs *regs)
+struct pt_regs *
+__devinit __comdatfunc (idle_regs)
+idle_regs(struct pt_regs *regs)
{
memset(regs, 0, sizeof(struct pt_regs));
return regs;
--- linux/kernel/irq/proc.c.weak 2005-05-10 13:52:00.000000000 -0700
+++ linux/kernel/irq/proc.c 2005-05-13 13:19:17.000000000 -0700
@@ -19,7 +19,8 @@ static struct proc_dir_entry *root_irq_d
*/
static struct proc_dir_entry *smp_affinity_entry[NR_IRQS];
-void __attribute__((weak))
+void
+__comdatfunc (proc_set_irq_affinity)
proc_set_irq_affinity(unsigned int irq, cpumask_t mask_val)
{
irq_affinity[irq] = mask_val;
next prev parent reply other threads:[~2005-05-13 20:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 21:55 heads up: apparent GAS bug in current (CVS) binutils David Mosberger
2005-05-13 17:32 ` Lu, Hongjiu
2005-05-13 17:44 ` Lu, Hongjiu
2005-05-13 18:48 ` Lu, Hongjiu
2005-05-13 20:34 ` David Mosberger
2005-05-13 20:50 ` H. J. Lu [this message]
2005-05-13 20:59 ` David Mosberger
2005-05-13 21:01 ` H. J. Lu
2005-05-13 21:05 ` David Mosberger
2005-05-17 20:48 ` Luck, Tony
2005-05-17 20:53 ` David Mosberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050513205004.GB30928@lucon.org \
--to=hjl@lucon.org \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox