summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Port all cmOStringStream to std::ostringstream.Stephen Kelly2015-01-111-1/+1
| | | | All compilers hosting CMake support the std class.
* cmELF: fix signedness warning on OpenBSDRolf Eike Beer2014-04-141-6/+9
| | | | | | | | | | | | | | | OpenBSD defines Elf64_Dyn::d_tag to be of an unsigned type, which differs from what most other platforms do and what is the case for 32 bit. To have the tag as unsigned makes sense, but this causes a compilation warning: /.../CMake/Source/cmELF.cxx: In member function 'const cmELF::StringEntry* cmELFInternalImpl<Types>::GetDynamicSectionString(int) [with Types = cmELFTypes64]': /.../CMake/Source/cmELF.cxx:945: instantiated from here /.../CMake/Source/cmELF.cxx:668: warning: comparison between signed and unsigned integer expressions Add an explicit typedef to cast the value to for 32 and 64 bit. That type is unsigned and has the proper length for both platforms so no information is lost. Explicitely cast both arguments before comparing them to avoid the warning in all situations.
* Haiku: Enable CMake builtin ELF editorAdrien Destugues2014-03-211-0/+20
| | | | Co-Author: Brad King <brad.king@kitware.com>
* cmELF: Fix typo in comment, 32-bit => 64-bit (#14799)Ryo ONODERA2014-03-101-1/+1
|
* Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.Clinton Stimpson2014-01-071-4/+5
| | | | | Also use SystemTools::Fopen() instead of fopen(). This is to eventually support utf-8 filenames.
* OpenBSD: Enable ELF parsing and editing (#14241)David Coppa2013-06-211-1/+6
| | | | | | | | | OpenBSD provides ELF ABI declarations in #include <stdint.h> #include <elf_abi.h> Teach the platform check and cmELF implementation to use these.
* Fix line-too-long style errorsBrad King2010-09-101-1/+2
|
* Fix or cast integer conversions in cmakeBrad King2010-06-251-1/+1
| | | | | These were revealed by GCC's -Wconversion option. Fix types where it is easy to do so. Cast in cases we know the integer will not be truncated.
* Try to remove some warnings.Bill Hoffman2010-05-121-1/+1
|
* Use explicit conversion to avoid warnings in cmELFBrad King2009-10-061-2/+2
|
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* BUG: Fix operator precedence error in cmELFBrad King2008-08-041-4/+4
| | | | | | When attempting to load the RPATH out of a non-ELF file cmELF would crash because the check for a valid file was done with in correct operator precedence. See bug#7392.
* BUG: When byte order is not known at compile time make sure NeedSwap in ↵Brad King2008-05-131-0/+2
| | | | cmELF is still initialized.
* ENH: In cmELF it is okay if the byte order is not known at compile time.Brad King2008-05-131-0/+1
| | | | - We perform a runtime check of the input file anyway.
* COMP: Fix signed/unsigned comparison warning in cmELF.Brad King2008-04-151-1/+1
|
* ENH: Added cmELF methods to get information about DYNAMIC section entries.Brad King2008-04-141-0/+88
|
* COMP: Fix cmELF to build when ET_LOOS, ET_HIOS, ET_LOPROC, ET_HIPROC may not ↵Brad King2008-03-031-19/+39
| | | | be defined.
* BUG: Fix bug introduced by workaround to warning.Brad King2008-03-021-0/+1
|
* BUG: A few more corrections for cmELFBrad King2008-03-021-10/+71
| | | | | | - Add os-specific and processor-specific file types - Add more error strings for invalid files. - Byte order of header fields does not always match encoding
* ENH: Add Size member to cmELF::StringEntry to return the amount of space in ↵Brad King2008-03-011-7/+33
| | | | the string entry.
* ENH: Make cmELF parser more general and powerfulBrad King2008-02-291-28/+135
| | | | | | - Add support to get RPATH and RUNPATH entries. - Add support to get file offsets to strings. - Add more DT_* tags to byte swapping.
* COMP: cmELF needs to include sys/link.h to get dynamic section structures on ↵Brad King2008-02-281-0/+3
| | | | the Sun.
* COMP: Fix warnings in cmELF.Brad King2008-02-281-1/+4
|
* ENH: Add ELF file parsingBrad King2008-02-271-0/+612
- Enabled when system provides elf.h - Introduce cmELF class to parse ELF files - Use in cmSystemTools::GuessLibrarySOName to really get soname