process.cc (3044:66cc2a38662e) process.cc (3068:35963cbd0a49)
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 176 unchanged lines hidden (view full) ---

185 //to 0 for regular executables. It should be something else
186 //(not sure what) for dynamic libraries.
187 auxv.push_back(buildAuxVect(SPARC_AT_BASE, 0));
188 //This is hardwired to 0 in the elf loading code in the kernel
189 auxv.push_back(buildAuxVect(SPARC_AT_FLAGS, 0));
190 //The entry point to the program
191 auxv.push_back(buildAuxVect(SPARC_AT_ENTRY, objFile->entryPoint()));
192 //Different user and group IDs
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 176 unchanged lines hidden (view full) ---

185 //to 0 for regular executables. It should be something else
186 //(not sure what) for dynamic libraries.
187 auxv.push_back(buildAuxVect(SPARC_AT_BASE, 0));
188 //This is hardwired to 0 in the elf loading code in the kernel
189 auxv.push_back(buildAuxVect(SPARC_AT_FLAGS, 0));
190 //The entry point to the program
191 auxv.push_back(buildAuxVect(SPARC_AT_ENTRY, objFile->entryPoint()));
192 //Different user and group IDs
193 auxv.push_back(buildAuxVect(SPARC_AT_UID, 100));
194 auxv.push_back(buildAuxVect(SPARC_AT_EUID, 100));
195 auxv.push_back(buildAuxVect(SPARC_AT_GID, 100));
196 auxv.push_back(buildAuxVect(SPARC_AT_EGID, 100));
193 auxv.push_back(buildAuxVect(SPARC_AT_UID, uid));
194 auxv.push_back(buildAuxVect(SPARC_AT_EUID, euid));
195 auxv.push_back(buildAuxVect(SPARC_AT_GID, gid));
196 auxv.push_back(buildAuxVect(SPARC_AT_EGID, egid));
197 //Whether to enable "secure mode" in the executable
198 auxv.push_back(buildAuxVect(SPARC_AT_SECURE, 0));
199 }
200
201 //Figure out how big the initial stack needs to be
202
203 // The unaccounted for 0 at the top of the stack
204 int mysterious_size = intSize;

--- 124 unchanged lines hidden ---
197 //Whether to enable "secure mode" in the executable
198 auxv.push_back(buildAuxVect(SPARC_AT_SECURE, 0));
199 }
200
201 //Figure out how big the initial stack needs to be
202
203 // The unaccounted for 0 at the top of the stack
204 int mysterious_size = intSize;

--- 124 unchanged lines hidden ---