On Mon, 25 Sep 2000 21:20:00 -0500 (CDT),
Peter Samuelson <[EMAIL PROTECTED]> wrote:
>Cool stuff! I thought about using basically the same approach, but I
>wasn't sure if binutils was up to the job. I didn't know about readelf
>(well, I'd read about it in the 2.10 announcement, but I didn't
[kaos]
> Got bored, wrote some Perl.
Cool stuff! I thought about using basically the same approach, but I
wasn't sure if binutils was up to the job. I didn't know about readelf
(well, I'd read about it in the 2.10 announcement, but I didn't know
what it could do). Basically readelf is
On Sun, 24 Sep 2000 14:28:07 -0500 (CDT),
Peter Samuelson <[EMAIL PROTECTED]> wrote:
>[Tigran Aivazian <[EMAIL PROTECTED]>]
>> The question you ask can be answered trivially - yes, it is
>> definitely a good idea, please make such a patch.
>
>My expression doesn't catch *all* offenders, by any
On Sun, 24 Sep 2000 14:28:07 -0500 (CDT),
Peter Samuelson [EMAIL PROTECTED] wrote:
[Tigran Aivazian [EMAIL PROTECTED]]
The question you ask can be answered trivially - yes, it is
definitely a good idea, please make such a patch.
My expression doesn't catch *all* offenders, by any means. For
[kaos]
Got bored, wrote some Perl.
Cool stuff! I thought about using basically the same approach, but I
wasn't sure if binutils was up to the job. I didn't know about readelf
(well, I'd read about it in the 2.10 announcement, but I didn't know
what it could do). Basically readelf is objdump
[kaos]
> char __initdata *cmd[] = {
> "command1",
> "command2",
> "command3",
> NULL
> };
Actually it works fine with '-fwritable-strings'. But then you lose
for the rest of the file! Otherwise, the following works, provided you
can put up with fixed-length
[Tigran Aivazian <[EMAIL PROTECTED]>]
> The question you ask can be answered trivially - yes, it is
> definitely a good idea, please make such a patch.
OK, I'll look at it.
> But what is far from being trivial is the magic reg. expression that
> is capable of catching all "globals initialized
In article <[EMAIL PROTECTED]> you wrote:
> Hi Peter,
> The question you ask can be answered trivially - yes, it is definitely a
> good idea, please make such a patch. But what is far from being trivial is
> the magic reg. expression that is capable of catching all "globals
> initialized to 0 or
Hi Peter,
The question you ask can be answered trivially - yes, it is definitely a
good idea, please make such a patch. But what is far from being trivial is
the magic reg. expression that is capable of catching all "globals
initialized to 0 or NULL". It would be very useful if you showed
Jeff Garzik writes:
> I am glad this was mentioned... It is a valid use of __initdata for
> static variables which you want to go away after boot. There might be
> some wasted space lurking here and there due to un-init'd __initdata
> vars.
You get a compiler warning for un-init'd __initdata
On Mon, 25 Sep 2000, Keith Owens wrote:
> Jeff Garzik <[EMAIL PROTECTED]> wrote:
> >I am glad this was mentioned... It is a valid use of __initdata for
> >static variables which you want to go away after boot. There might be
> >some wasted space lurking here and there due to un-init'd
On Sun, 24 Sep 2000 08:31:12 -0500 (CDT),
Jeff Garzik <[EMAIL PROTECTED]> wrote:
>> On Sat, 23 Sep 2000 20:59:59 -0500 (CDT),
>> Peter Samuelson <[EMAIL PROTECTED]> wrote:
>> >(A related question: __initdata *does* have to be initialized, right?)
>>
>> If __initdata is not initialized then it
> On Sat, 23 Sep 2000 20:59:59 -0500 (CDT),
> Peter Samuelson <[EMAIL PROTECTED]> wrote:
> >(A related question: __initdata *does* have to be initialized, right?)
>
> If __initdata is not initialized then it ends up in the global .bss.
> This would defeat the purpose of using __initdata.
I am
Peter Samuelson writes:
> Not that any of us who don't do embedded projects ought to care very
> much, but I was curious. I grepped test9pre6 for globals initialized
> to 0 or NULL and came up with 2495 lines, first iteration.
I did kick it off, but I've not had the time recently to go through
Peter Samuelson writes:
Not that any of us who don't do embedded projects ought to care very
much, but I was curious. I grepped test9pre6 for globals initialized
to 0 or NULL and came up with 2495 lines, first iteration.
I did kick it off, but I've not had the time recently to go through and
On Sat, 23 Sep 2000 20:59:59 -0500 (CDT),
Peter Samuelson [EMAIL PROTECTED] wrote:
(A related question: __initdata *does* have to be initialized, right?)
If __initdata is not initialized then it ends up in the global .bss.
This would defeat the purpose of using __initdata.
I am glad this
On Sun, 24 Sep 2000 08:31:12 -0500 (CDT),
Jeff Garzik [EMAIL PROTECTED] wrote:
On Sat, 23 Sep 2000 20:59:59 -0500 (CDT),
Peter Samuelson [EMAIL PROTECTED] wrote:
(A related question: __initdata *does* have to be initialized, right?)
If __initdata is not initialized then it ends up in the
On Mon, 25 Sep 2000, Keith Owens wrote:
Jeff Garzik [EMAIL PROTECTED] wrote:
I am glad this was mentioned... It is a valid use of __initdata for
static variables which you want to go away after boot. There might be
some wasted space lurking here and there due to un-init'd __initdata
vars.
Jeff Garzik writes:
I am glad this was mentioned... It is a valid use of __initdata for
static variables which you want to go away after boot. There might be
some wasted space lurking here and there due to un-init'd __initdata
vars.
You get a compiler warning for un-init'd __initdata
In article [EMAIL PROTECTED] you wrote:
Hi Peter,
The question you ask can be answered trivially - yes, it is definitely a
good idea, please make such a patch. But what is far from being trivial is
the magic reg. expression that is capable of catching all "globals
initialized to 0 or NULL".
[Tigran Aivazian [EMAIL PROTECTED]]
The question you ask can be answered trivially - yes, it is
definitely a good idea, please make such a patch.
OK, I'll look at it.
But what is far from being trivial is the magic reg. expression that
is capable of catching all "globals initialized to 0
[kaos]
char __initdata *cmd[] = {
"command1",
"command2",
"command3",
NULL
};
Actually it works fine with '-fwritable-strings'. But then you lose
for the rest of the file! Otherwise, the following works, provided you
can put up with fixed-length strings:
On Sat, 23 Sep 2000 20:59:59 -0500 (CDT),
Peter Samuelson <[EMAIL PROTECTED]> wrote:
>(A related question: __initdata *does* have to be initialized, right?)
If __initdata is not initialized then it ends up in the global .bss.
This would defeat the purpose of using __initdata.
-
To unsubscribe
Not that any of us who don't do embedded projects ought to care very
much, but I was curious. I grepped test9pre6 for globals initialized
to 0 or NULL and came up with 2495 lines, first iteration. At 4-byte
alignment this works out to something over 9k of .data that should be
.bss (not that
On Sat, 23 Sep 2000 20:59:59 -0500 (CDT),
Peter Samuelson [EMAIL PROTECTED] wrote:
(A related question: __initdata *does* have to be initialized, right?)
If __initdata is not initialized then it ends up in the global .bss.
This would defeat the purpose of using __initdata.
-
To unsubscribe
25 matches
Mail list logo