1
/*=========================================================================
3
Program: CMake - Cross-Platform Makefile Generator
4
Module: $RCSfile: cmELF.cxx,v $
6
Date: $Date: 2008-08-06 21:04:19 $
7
Version: $Revision: 1.8.2.3 $
9
Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12
This software is distributed WITHOUT ANY WARRANTY; without even
13
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14
PURPOSE. See the above copyright notices for more information.
16
=========================================================================*/
1
/*============================================================================
2
CMake - Cross Platform Makefile Generator
3
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5
Distributed under the OSI-approved BSD License (the "License");
6
see accompanying file Copyright.txt for details.
8
This software is distributed WITHOUT ANY WARRANTY; without even the
9
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
See the License for more information.
11
============================================================================*/
17
12
#include "cmStandardIncludes.h" // to get CMAKE_USE_ELF_PARSER first
546
541
// Allocate the dynamic section entries.
547
542
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
548
int n = sec.sh_size / sec.sh_entsize;
543
int n = static_cast<int>(sec.sh_size / sec.sh_entsize);
549
544
this->DynamicSectionEntries.resize(n);
551
546
// Read each entry.
599
594
ELF_Shdr const& sec = this->SectionHeaders[this->DynamicSectionIndex];
600
return sec.sh_offset + sec.sh_entsize*j;
595
return static_cast<unsigned long>(sec.sh_offset + sec.sh_entsize*j);
603
598
//----------------------------------------------------------------------------