Hello, 

 I tried on a machine where I had installed an opensolaris kernel is installed 
from source the 
following:

Made a trivial change in usr/src/uts/common/inet/ip/ip.c (added cmn_err() in a 
method which is called once at init only.).
run two things:

1) bldenv opensolaris.sh and 
nightly -i  opensolaris.sh

2)  bldenv opensolaris.sh and 
cd usr/src/uts/intel/ip 
run "dmake all"


Than I compared the results:

In the first case, the object files and modules were created under 
usr/src/uts/intel/ip/debug32  and 
usr/src/uts/intel/ip/debug64.

In the second case , 

 the object files and modules were created under 
usr/src/uts/intel/ip/obj32   and 
usr/src/uts/intel/ip/obj64.

First , I have a 64 bit machine; so in both cases I think would prefere not 
to build 32 bit objects if it is ok and have no implications. 

This is true also to other folders under 
usr/src/uts/intel. (meaning having both 32 and 64 folders of genereated object 
files).

So is there a way to get rid of building 32 bit objects ? 

Second , I compared the correspondind object files of both builds and they are 
DIFFERENT!
for example:
debug64/ip is 3110k and obj64/ip is 2317k
debug64/ip.o is 768k and obj64/ip.o is 640k

and generally, objects under obj64 are smaller than object files under debug64.

So: 
why is this change ? 
can I use SAFELY the ip module which was created from 
cd usr/src/uts/intel/ip and 
 "dmake all", 
(namely , the usr/src/uts/intel/ip/obj64/ip mopdule)


Regards,
Xu
 
 
This message posted from opensolaris.org

Reply via email to