lkml.org 
[lkml]   [2004]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [4KSTACK][2.6.6] Stack overflow in radeonfb
On Tue, 18 May 2004 12:47:34 -0500, Matt Mackall wrote:
>
> Unfortunately, apparently at least objdump for parisc prints hex with
> no leading 0x, and IA64 does something much uglier (as it is wont to
> do), so I'll have to do something a bit more clever here.

Don't waste too much time with it, this is an ugly hack by design
already, for two reasons:

1. It really ought to be part of gcc. Gcc needs a
-Wstack-per-function option that will give a warning whenever the
stack for any function exceeds some user-defined value. alloca()
will exceed any value.
2. We don't care much about the usage per function, but for a complete
code path. An expanded checker to do this already exists, I'm
merely not allowed to give it to anyone. Lawyers.

Apart from that, go ahead and have fun!

Jörn

--
Data expands to fill the space available for storage.
-- Parkinson's Law
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.088 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site