[uClinux-dev] binfmt_flat.c and multiple processes with the same executable file.

Greg Ungerer gerg at snapgear.com
Mon Oct 3 00:29:29 EDT 2005


Hi Mathieu,

Avila Mathieu wrote:
> I am currently trying to run multiple processes from the same executable 
> file. It seems that in that case, i get always the same TEXT/DATA/BSS 
> segments.

Can you explain further, give your example?
What architecture are you working with?


> I tried using a gzipped version of my file, hoping it would be copied 
> elsewhere each time it is being run. But it's not the case.

Can you run:

     flthdr <yourprogram>

Lets see what flags are set.


> "binfmt_flat.c" contains a mapping of the file, which it seems is 
> released only when the process ends, meaning another process gets the 
> same mapping (is it possible ?) Maybe this has been corrected in the 
> latest versions of uclinux ? I am currently running the one coming from 
> kernel 2.6.9.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
SnapGear -- a CyberGuard Company            PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com



More information about the uClinux-dev mailing list