process.cc (13894:8603648c1679) process.cc (14010:0e1e887507c0)
1/*
2 * Copyright (c) 2004-2005 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;

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

165 IntType arg_data_base = auxv_array_base + auxv_array_size;
166 IntType env_data_base = arg_data_base + arg_data_size;
167
168 // write contents to stack
169 IntType argc = argv.size();
170
171 argc = htog((IntType)argc);
172
1/*
2 * Copyright (c) 2004-2005 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;

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

165 IntType arg_data_base = auxv_array_base + auxv_array_size;
166 IntType env_data_base = arg_data_base + arg_data_size;
167
168 // write contents to stack
169 IntType argc = argv.size();
170
171 argc = htog((IntType)argc);
172
173 initVirtMem.writeBlob(memState->getStackMin(), (uint8_t*)&argc, intSize);
173 initVirtMem.writeBlob(memState->getStackMin(), &argc, intSize);
174
175 copyStringArray(argv, argv_array_base, arg_data_base, initVirtMem);
176
177 copyStringArray(envp, envp_array_base, env_data_base, initVirtMem);
178
179 // Copy the aux vector
180 Addr auxv_array_end = auxv_array_base;
181 for (const auto &aux: auxv) {

--- 46 unchanged lines hidden ---
174
175 copyStringArray(argv, argv_array_base, arg_data_base, initVirtMem);
176
177 copyStringArray(envp, envp_array_base, env_data_base, initVirtMem);
178
179 // Copy the aux vector
180 Addr auxv_array_end = auxv_array_base;
181 for (const auto &aux: auxv) {

--- 46 unchanged lines hidden ---