Re: #if 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 28, 2008 1:03 AM, Bert Wesarg <bert.wesarg@xxxxxxxxxxxxxx> wrote:
>
> On Jan 28, 2008 12:55 AM, Paolo Ciarrocchi <paolo.ciarrocchi@xxxxxxxxx> wrote:
> > On Jan 28, 2008 12:29 AM, Bert Wesarg <bert.wesarg@xxxxxxxxxxxxxx> wrote:
> > > Hi,
> > >
> > > On Jan 28, 2008 12:10 AM, Paolo Ciarrocchi <paolo.ciarrocchi@xxxxxxxxx> wrote:
> > > > Hi all,
> > > > I'm failing to understand why the following patch is changing the md5sum
> > > > of the relative .o file
> > > >
> > > > Isn't the code included in the #if 0 #endif section supposed to be
> > > > ignored by the compiler?
> > > Yes, but I think the line numbers changes too and are also in the .o file.
> >
> > Dunno, but stripping the file make md5sum as follow:
> > paolo@paolo-desktop:~/linux-2.6/kernel$ strip
> > /home/paolo/Desktop/File\ punto\ o/*
> > paolo@paolo-desktop:~/linux-2.6/kernel$ md5sum
> > /home/paolo/Desktop/File\ punto\ o/*
> > 2bf404e247edf33cf6fb99c37321cdb9  /home/paolo/Desktop/File punto o/error.o.after
> > 2bf404e247edf33cf6fb99c37321cdb9  /home/paolo/Desktop/File punto
> > o/error.o.before
> Perfect. What was your problem?

The problem was that I didn't expect to see different md5sum after removing
some dead code.

I'm working on a series of cleanup patches and I want to be sure that
I'm NOT changing
the .o file. I want to be sure that every single patch is just
cleaning the code.

What I wanted to do was:
make a/b/c.o
md5sum a/b/c.o
applying the first patch
make clean && make a/b/c.o
md5sum a/b/c.o
and so on.

Should I add the strip command to the procedure?
And if yes... why?

Thanks!

Ciao,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/
-
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux