Peter
2fca982c8d
Added FreeBSD references to solve install issues
...
Added FreeBSD as possible target OS. Python3.6 install --user was throwing error about unknown OS.
these fixes worked on my end.
2018-02-09 10:28:28 +01:00
Romain Thomas
9d93cc5ec4
Update API for MachO RPath. Related to 27575527db
2018-01-18 14:41:48 +01:00
Jakob Rieck
196994dc08
Parse the MachO LC_RPATH command
2017-12-15 00:14:00 +01:00
Romain Thomas
ae4c2a95ee
Fix #126
2017-12-11 08:55:40 +01:00
Romain Thomas
1c722d9ff2
Add new ELF relocations
2017-11-25 11:42:00 +01:00
Romain Thomas
4e38d9cf99
Fix #117
2017-11-21 16:59:39 +01:00
Romain Thomas
404e0ecca3
Enhance LIEF 'modules' separation
2017-11-18 18:07:14 +01:00
Romain Thomas
ba7dfeab39
Update doc
2017-11-01 20:34:20 +01:00
Romain Thomas
aa70e07791
Handle Python BytesIO, TextIO for LIEF' parsers
...
Resolve : #49
2017-11-01 16:44:39 +01:00
Romain Thomas
49fdb8dc8f
Add 'shell' and 'breakp' for the Python API
...
* 'lief.shell()' spawns an IPython interpreter with the current
context
* 'lief.breakp()' launchs pdb.set_trace()
2017-11-01 16:38:48 +01:00
Romain Thomas
5778bae34c
Use Pybind11 C++ API instead of 'eval'
2017-11-01 16:38:03 +01:00
Romain Thomas
4cee3fa240
Some improvements in the CMake build
...
* cache dependencies in the 'third-party' directory.
* Enhance Python 'find_library'
2017-11-01 10:12:05 +01:00
Romain Thomas
49c2d089dd
Downgrade the setuptools requirement to 31.0.0
2017-10-30 15:34:53 +01:00
Romain Thomas
d421f12e32
Update doc for symbols
2017-10-30 15:34:53 +01:00
Romain Thomas
880b99aeef
Provide MachO::ParserConfig to parametrize the parsing.
...
Resolve : #105
2017-10-30 15:34:53 +01:00
Romain Thomas
62e5825e27
Enforce setuptools version
2017-10-18 14:31:42 +02:00
Romain Thomas
b1c4c2db1e
Fix bdist_egg errors
2017-10-17 11:38:09 +02:00
Romain Thomas
0234e3b8bb
Parse the PE Load Configuration structure
2017-10-06 07:55:58 +02:00
Romain Thomas
721eeae9a2
Fix typo
2017-10-04 09:34:27 +02:00
Romain Thomas
d5d3d375d4
Upgrade pip in the Windows CI
2017-10-04 08:30:15 +02:00
Romain Thomas
2e4bd6d4c4
Improve Python packaging
2017-10-03 22:42:13 +02:00
Romain Thomas
3be9dd0ff5
Enable ELF notes modifications
2017-10-02 16:24:55 +02:00
Romain Thomas
ab160a88d6
Move to version 2.2.1 of Pybind11
2017-10-01 20:51:44 +02:00
Romain Thomas
3602643f5d
Fix memory leaks in the MachO Python API and create FatBinary
...
API Changes:
LIEF::MachO::Parser won't return a 'std::vector' of MachO::Binary*
but a pointer to MachO::FatBinary object
It's a kind of wrapper on std::vector<MachO::Binary*>
2017-09-29 13:06:08 +02:00
Romain Thomas
cd0f1e03d8
Fix typo
2017-09-28 11:24:20 +02:00
Romain Thomas
7a0dc28ea2
Integration of llvm libFuzzer
2017-09-28 10:54:37 +02:00
Romain Thomas
7f6aeb0d0d
Enable ASAN, TSAN, USAN and LSAN
2017-09-28 08:54:40 +02:00
Romain Thomas
051a452415
Use archives instead of all repos
2017-09-24 14:00:35 +02:00
Romain Thomas
e805669865
Update ELF API
...
Related to #66
2017-09-23 14:40:21 +02:00
Romain Thomas
9036a2405d
Bug fix in dynamic symbols counting based on GnuHash
...
API Changes (ELF):
* ELF::GnuHash::{check_bloom_filter, check_bucket, check}
2017-09-23 14:08:52 +02:00
Romain Thomas
accf47ebf2
Fix performances issues
...
Fix #94
2017-09-20 13:58:19 +02:00
Romain Thomas
23257830b2
Parse the MachO LC_THREAD/LC_UNIXTHREAD command
...
New object: MachO::ThreadCommand
Resolve : #89
2017-09-13 17:42:05 +02:00
Romain Thomas
81440ce00c
Enhance ELF API the DynamicEntryArray
2017-09-12 15:37:32 +02:00
Romain Thomas
c375a47da7
Improve API for ELF RUN_PATH / RPATH
2017-09-12 15:05:30 +02:00
Romain Thomas
1e410e6c95
Add API to remove dynamic entries (ELF)
...
API Changes (Python / C++):
* lief.ELF.Binary.remove(DynamicEntry / DYNAMIC_TAGS) - Added
* lief.ELF.Binary.remove_library
2017-09-12 13:57:51 +02:00
Romain Thomas
8ecaab0a7c
Resolve #88
2017-09-07 22:23:57 +02:00
Romain Thomas
a4c69f7868
Rename getter from get_XXX to XXX
...
related to #66
2017-09-07 14:45:41 +02:00
Romain Thomas
b2d36940f6
Enable ELF interpreter modification (without size restriction)
...
See: 'examples/python/changer_elf_interpreter.py' for usage
Resolve : #86
2017-09-07 13:37:09 +02:00
Romain Thomas
9503f2fc7b
Add relocation in the Abstract layer
...
The abstracted attributes are:
* Address: virtual address where the relocation occurs
* Size: size in bits of the relocation
See: LIEF::Relocation / lief.Relocation and abstract_reader
Resolve : #53
2017-09-05 22:00:31 +02:00
Romain Thomas
58bf7a2987
Forward ELF Dynamic Entry ctor
2017-09-03 21:23:59 +02:00
Romain Thomas
123f396d6a
Clean up
2017-09-03 20:51:09 +02:00
Romain Thomas
b94900ca7f
Improve the ELF part of LIEF
...
Major changes (features):
* Enable adding multiple sections/segments - Executable (PIE or not), Library
* Enable adding multiple dynamic entries (DT_NEEDED, DT_INIT etc)
* Enable adding multiple relocations
* Enable adding multiple dynamic symbols
* Enable segment replacement
Major changes (API):
* Getters Binary::get_*name*() has been renamed to "name()"
* Binary::add(const DynamicEntry& entry) - To add an entry in the dynamic table
* Section& Binary::add(const Section& section, bool loaded = true) - To add a section(s)
* Segment& Binary::add(const Segment& segment, uint64_t base = 0) - To add segments
* Segment& replace(const Segment& new_segment, const Segment& original_segment, uint64_t base = 0)
* Binary's last_offset_section(), last_offset_segment(), next_virtual_address()
to have information about offset
* Binary's add_library(), get_library(), has_library() to handle
DT_NEEDED entries
Other changes:
* Binary::insert_content() - Use add(const Section&) or add(const Segment&) instead
* ELF's DataHandler has been cleaned
* Through LIEF::Section one can look for integers, strings, data
within the section (see LIEF::Section::search,
LIEF::Section::search_all)
* Through LIEF::Binary one can get *xref* of a number (or address)
see LIEF::Binary::xref function
* To access to the Abstract binary in Python, one can now use
the 'abstract' attribute. (e.g. binary.abstract.header.is_32)
Resolve : #83
Resolve : #66
Resolve : #48
2017-09-02 08:54:54 +02:00
Romain Thomas
07138549a4
Improve Python API to access to the binary Abstract layer
2017-08-30 09:51:03 +02:00
Romain Thomas
3204ba512a
Fix encoding issues
...
Resolve : #85
2017-08-26 21:21:27 +02:00
Romain Thomas
4937b7193a
Resolve #84
...
API Changes (Python):
* lief.ELF.Section.flags_list - added
2017-08-25 15:57:59 +02:00
Romain Thomas
f121af5ca6
Add API to get symbol by name (abstract layer)
...
API Changes (Python/C++):
LIEF::Binary::has_symbol
LIEF::Binary::get_symbol
It works for ELF, PE, MachO
2017-08-22 09:47:29 +02:00
Romain Thomas
66b4cd4550
Fix enums conflicts
...
Enums changes (C++/C):
ELF:
* s/SECTION_TYPES/ELF_SECTION_TYPES/
* s/SECTION_FLAGS/ELF_SECTION_FLAGS/
* s/SYMBOL_TYPES/ELF_SYMBOL_TYPES/
* s/SEGMENT_FLAGS/ELF_SEGMENT_FLAGS/
MachO:
* s/SECTION_TYPES/MACHO_SECTION_TYPES/
* s/SECTION_FLAGS/MACHO_SECTION_FLAGS/
* s/SYMBOL_TYPES/MACHO_SYMBOL_TYPES/
* s/SEGMENTS_FLAGS/MACHO_SEGMENTS_FLAGS/
PE:
* s/SECTION_TYPES/PE_SECTION_TYPES/
Resolve #32
2017-08-21 09:23:40 +02:00
Adrien Guinet
cecdb721a6
Add functional header to ELF/Header.hpp
...
This makes LIEf compile with libstdc++-v7
2017-08-20 08:53:59 +02:00
Adrien Guinet
3a76b8dddc
Make JSON related API optional
2017-08-20 07:08:50 +02:00
Romain Thomas
8caf1515cb
Add 'NX' in the abstract layer
...
API Changes:
- LIEF::Binary::has_nx() - Added
Resolve : #72
2017-08-02 09:23:55 +02:00