process.cc (11389:1e55f16160cb) process.cc (11392:5967db4cff04)
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

538 // execve system call would just invoke the kernel's internal mmap
539 // functions to make these adjustments.
540 mmap_end = mmapGrowsDown() ? ld_bias : mmap_end + interp_mapsize;
541
542 interp->updateBias(ld_bias);
543}
544
545
1/*
2 * Copyright (c) 2014 Advanced Micro Devices, Inc.
3 * Copyright (c) 2012 ARM Limited
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

538 // execve system call would just invoke the kernel's internal mmap
539 // functions to make these adjustments.
540 mmap_end = mmapGrowsDown() ? ld_bias : mmap_end + interp_mapsize;
541
542 interp->updateBias(ld_bias);
543}
544
545
546ObjectFile *
547LiveProcess::getInterpreter()
548{
549 return objFile->getInterpreter();
550}
551
552
546Addr
547LiveProcess::getBias()
548{
553Addr
554LiveProcess::getBias()
555{
549 ObjectFile *interp = objFile->getInterpreter();
556 ObjectFile *interp = getInterpreter();
550
551 return interp ? interp->bias() : objFile->bias();
552}
553
554
555Addr
556LiveProcess::getStartPC()
557{
557
558 return interp ? interp->bias() : objFile->bias();
559}
560
561
562Addr
563LiveProcess::getStartPC()
564{
558 ObjectFile *interp = objFile->getInterpreter();
565 ObjectFile *interp = getInterpreter();
559
560 return interp ? interp->entryPoint() : objFile->entryPoint();
561}
562
563
564LiveProcess *
565LiveProcess::create(LiveProcessParams * params)
566{

--- 150 unchanged lines hidden ---
566
567 return interp ? interp->entryPoint() : objFile->entryPoint();
568}
569
570
571LiveProcess *
572LiveProcess::create(LiveProcessParams * params)
573{

--- 150 unchanged lines hidden ---