Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b16f99f9d2 | ||
|
|
7db93e5e70 | ||
|
|
6f3594f270 | ||
|
|
08dc3b7fa8 | ||
|
|
c027a792c9 | ||
|
|
b165c5241c | ||
|
|
cb47b28c0b | ||
|
|
418c55f1a8 | ||
|
|
b9134341c7 | ||
|
|
98e0a77dbf | ||
|
|
8ff9a881e0 | ||
|
|
6ff6b3f92c | ||
|
|
a7a223c443 | ||
|
|
4ca17d6538 | ||
|
|
2b7d2a1904 | ||
|
|
5a837f7023 | ||
|
|
45d0e6cdcb | ||
|
|
c5ad372702 | ||
|
|
b240acbb00 | ||
|
|
f58a30dfc6 | ||
|
|
7900739500 | ||
|
|
4c6715b653 | ||
|
|
0bac402d49 | ||
|
|
21da75fb8a | ||
|
|
d2b0c03d14 | ||
|
|
d7e4fb5f98 | ||
|
|
61df87d20f | ||
|
|
4e921072e6 | ||
|
|
896fe42698 | ||
|
|
abb4968e2c | ||
|
|
9e429042e2 | ||
|
|
cb383d3f87 | ||
|
|
1bd345f5cf | ||
|
|
03aca30b53 | ||
|
|
1cb571053b | ||
|
|
dc95e9c513 | ||
|
|
3ab17a5625 | ||
|
|
cb115a7165 | ||
|
|
a54e5b27b7 | ||
|
|
aa2b617f47 | ||
|
|
b7f367451a | ||
|
|
fc1cdcd9aa | ||
|
|
8bba61609f | ||
|
|
9698ea666d | ||
|
|
8ac5c8693c | ||
|
|
9dff397f38 | ||
|
|
ff27238d4e | ||
|
|
dabbb72483 | ||
|
|
2714146f0e | ||
|
|
60c3e88777 | ||
|
|
fe54643fe3 | ||
|
|
00f3322411 | ||
|
|
562eacc974 | ||
|
|
76c54de0e7 | ||
|
|
3507c8fefc | ||
|
|
c82f9c64f2 | ||
|
|
f4d68357cb | ||
|
|
03f234cbb6 | ||
|
|
2c5c77333e | ||
|
|
0dd839d7db | ||
|
|
2d9855fc7f | ||
|
|
45d772ad45 | ||
|
|
790e628b56 | ||
|
|
88bbd410e6 | ||
|
|
1347dec367 | ||
|
|
b85e785f62 | ||
|
|
b9a5f970b2 | ||
|
|
ac98429d75 | ||
|
|
19af291ab6 | ||
|
|
ebbc55fd69 | ||
|
|
1ea659535e | ||
|
|
6ed889e8cf | ||
|
|
b3d6a0737f |
@@ -0,0 +1,79 @@
|
||||
name: 'iOS'
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
ios-sdk:
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
brew install cmake ninja ccache
|
||||
- name: Get Date
|
||||
id: get-date
|
||||
run: |
|
||||
echo "date=$(/bin/date -u "+%Y-%m-%d-%H;%M;%S")" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
- name: Setup cache dir
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p ~/.ccache
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ runner.temp }}/.ccache
|
||||
key: ios-${{ runner.os }}-${{ steps.get-date.outputs.date }}
|
||||
restore-keys: |
|
||||
ios-${{ runner.os }}
|
||||
- name: Build iOS SDK
|
||||
shell: bash
|
||||
env:
|
||||
CCACHE_DIR: ${{ runner.temp }}/.ccache
|
||||
CCACHE_MAXSIZE: 10.0G
|
||||
CCACHE_CPP2: 1
|
||||
CCACHE_COMPRESS: 1
|
||||
run: |
|
||||
bash scripts/osx/package_ios.sh
|
||||
- name: 'Upload Artifact'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ios-sdk
|
||||
path: build/*.tar.gz
|
||||
retention-days: 3
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ always() }}
|
||||
needs: ios-sdk
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: ${{ runner.temp }}/artifacts
|
||||
- name: Display artifacts
|
||||
run: ls -R
|
||||
working-directory: ${{ runner.temp }}/artifacts
|
||||
- name: Deploy
|
||||
env:
|
||||
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }}
|
||||
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }}
|
||||
shell: bash
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v $GITHUB_WORKSPACE:/src \
|
||||
-v $RUNNER_TEMP:/runner_tmp \
|
||||
-e GITHUB_ACTIONS="true" \
|
||||
-e GITHUB_WORKSPACE=$GITHUB_WORKSPACE \
|
||||
-e GITHUB_REF=$GITHUB_REF \
|
||||
-e GITHUB_REPOSITORY=$GITHUB_REPOSITORY \
|
||||
-e LIEF_S3_KEY=$LIEF_S3_KEY \
|
||||
-e LIEF_S3_SECRET=$LIEF_S3_SECRET \
|
||||
liefproject/deploy \
|
||||
python3 /src/.github/deploy.py /runner_tmp/artifacts
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
name: 'Linux AArch64'
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
linux-sdk:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get Date
|
||||
id: get-date
|
||||
run: |
|
||||
echo "date=$(/bin/date -u "+%Y-%m-%d-%H;%M;%S")" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.ccache
|
||||
key: linux-aarch64-${{ runner.os }}-sdk-${{ steps.get-date.outputs.date }}
|
||||
restore-keys: |
|
||||
linux-aarch64-${{ runner.os }}-sdk
|
||||
- name: Build SDK
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir -p $RUNNER_TEMP/lief-install
|
||||
mkdir -p $HOME/.ccache
|
||||
|
||||
chmod -R 777 $HOME/.ccache
|
||||
|
||||
docker run --name lief-sdk -u 1001:1001 --rm \
|
||||
-e CCACHE_COMPRESS=1 \
|
||||
-e CCACHE_MAXSIZE=10.0G \
|
||||
-e CCACHE_DIR=/ccache \
|
||||
-v $GITHUB_WORKSPACE:/src \
|
||||
-v $RUNNER_TEMP/lief-install:/install \
|
||||
-v $HOME/.ccache:/ccache \
|
||||
liefproject/manylinux2014-aarch64 \
|
||||
bash /src/scripts/docker/linux-sdk-aarch64
|
||||
- name: 'Upload SDK Artifact'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-aarch64-sdk
|
||||
path: build/*.tar.gz
|
||||
retention-days: 3
|
||||
- name: 'Upload Install Artifact'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-aarch64-install
|
||||
path: ${{ runner.temp }}/lief-install
|
||||
retention-days: 1
|
||||
wheels:
|
||||
runs-on: ubuntu-latest
|
||||
needs: linux-sdk
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [3.9, '3.10', '3.11', '3.12']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get Date
|
||||
id: get-date
|
||||
run: |
|
||||
echo "date=$(/bin/date -u "+%Y-%m-%d-%H;%M;%S")" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
- name: ccache cache files
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.ccache
|
||||
key: linux-aarch64-${{ runner.os }}-${{ matrix.python-version }}-${{ steps.get-date.outputs.date }}
|
||||
restore-keys: |
|
||||
linux-aarch64-${{ runner.os }}-${{ matrix.python-version }}
|
||||
- name: Download LIEF install dir
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: linux-aarch64-install
|
||||
path: ${{ runner.temp }}/lief-install
|
||||
- name: Python ${{ matrix.python-version }} -- Wheel
|
||||
shell: bash
|
||||
env:
|
||||
PYTHON_VERSION: ${{ matrix.python-version }}
|
||||
run: |
|
||||
mkdir -p $HOME/.ccache
|
||||
chmod -R 777 $HOME/.ccache
|
||||
|
||||
PYTHON_VERSION_ALT=$(echo "${PYTHON_VERSION}" | sed 's/\.//') # Transform 3.8 -> 38
|
||||
PYTHON_BINARY="/opt/python/cp${PYTHON_VERSION_ALT}-cp${PYTHON_VERSION_ALT}/bin/python${PYTHON_VERSION}"
|
||||
docker run -u 1001:1001 --rm \
|
||||
-e CCACHE_COMPRESS=1 \
|
||||
-e CCACHE_MAXSIZE=10.0G \
|
||||
-e CCACHE_CPP2=1 \
|
||||
-e CCACHE_DIR=/ccache \
|
||||
-e PYTHON_VERSION=$PYTHON_VERSION_ALT \
|
||||
-e PYTHON_BINARY=$PYTHON_BINARY \
|
||||
-v $GITHUB_WORKSPACE:/src \
|
||||
-v $HOME/.ccache:/ccache \
|
||||
-v $RUNNER_TEMP/lief-install:/install \
|
||||
liefproject/manylinux2014-aarch64 \
|
||||
bash /src/scripts/docker/linux-py-aarch64
|
||||
- name: 'Artifact'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-aarch64-python${{ matrix.python-version }}-wheel
|
||||
path: dist/*.whl
|
||||
retention-days: 3
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ always() }}
|
||||
needs: [linux-sdk, wheels]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
pattern: linux-aarch64-*
|
||||
merge-multiple: true
|
||||
path: ${{ runner.temp }}/artifacts
|
||||
- name: Display artifacts
|
||||
run: ls -R
|
||||
working-directory: ${{ runner.temp }}/artifacts
|
||||
- name: Deploy
|
||||
env:
|
||||
LIEF_S3_KEY: ${{ secrets.LIEF_S3_KEY }}
|
||||
LIEF_S3_SECRET: ${{ secrets.LIEF_S3_SECRET }}
|
||||
shell: bash
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v $GITHUB_WORKSPACE:/src \
|
||||
-v $RUNNER_TEMP:/runner_tmp \
|
||||
-e GITHUB_ACTIONS="true" \
|
||||
-e GITHUB_WORKSPACE=$GITHUB_WORKSPACE \
|
||||
-e GITHUB_REF=$GITHUB_REF \
|
||||
-e GITHUB_REPOSITORY=$GITHUB_REPOSITORY \
|
||||
-e LIEF_S3_KEY=$LIEF_S3_KEY \
|
||||
-e LIEF_S3_SECRET=$LIEF_S3_SECRET \
|
||||
liefproject/deploy \
|
||||
python3 /src/.github/deploy.py /runner_tmp/artifacts
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ env:
|
||||
|
||||
jobs:
|
||||
osx-sdk:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-13
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
path: install/x64
|
||||
retention-days: 1
|
||||
osx-testing:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-13
|
||||
if: "!contains(github.event.commits[0].message, '[skip-test]')"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -124,7 +124,7 @@ jobs:
|
||||
python tests/run_tools_check.py ${LIEF_BUILD_DIR}/
|
||||
ctest --output-on-failure --test-dir ${LIEF_BUILD_DIR}/
|
||||
wheels:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-13
|
||||
needs: osx-sdk
|
||||
strategy:
|
||||
matrix:
|
||||
|
||||
@@ -7,7 +7,7 @@ env:
|
||||
|
||||
jobs:
|
||||
osx:
|
||||
runs-on: macos-14
|
||||
runs-on: macos-11.0
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
@@ -6,7 +6,6 @@ build/
|
||||
*.lib
|
||||
lief.egg-info/
|
||||
dist/
|
||||
**/target/*
|
||||
api/rust/cargo/target/*
|
||||
api/rust/examples/target/*
|
||||
tools/target/*
|
||||
|
||||
+3
-3
@@ -35,9 +35,9 @@ elseif(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git"
|
||||
AND IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/.git" AND Git_FOUND)
|
||||
include(LIEFGit)
|
||||
else()
|
||||
set(LIEF_VERSION_MAJOR 1)
|
||||
set(LIEF_VERSION_MINOR 0)
|
||||
set(LIEF_VERSION_PATCH 0)
|
||||
set(LIEF_VERSION_MAJOR 0)
|
||||
set(LIEF_VERSION_MINOR 17)
|
||||
set(LIEF_VERSION_PATCH 6)
|
||||
endif()
|
||||
|
||||
if (DEFINED ENV{LIEF_COMMIT})
|
||||
|
||||
@@ -186,8 +186,8 @@
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2017 - 2026 R. Thomas
|
||||
Copyright 2017 - 2026 Quarkslab
|
||||
Copyright 2017 - 2025 R. Thomas
|
||||
Copyright 2017 - 2025 Quarkslab
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -20,8 +20,7 @@ modify and abstract ELF, PE and MachO formats.
|
||||
* **Parsing**: LIEF can parse [ELF](https://lief.re/doc/latest/formats/elf/index.html), [PE](https://lief.re/doc/latest/formats/pe/index.html), [MachO](https://lief.re/doc/latest/formats/macho/index.html), [COFF](https://lief.re/doc/latest/formats/coff/index.html), OAT, DEX, VDEX, ART and provides an user-friendly API to access to internals.
|
||||
* **Modify**: LIEF can use to modify some parts of these formats (adding a section, changing a symbol's name, ...)
|
||||
* **Abstract**: Three formats have common features like sections, symbols, entry point... LIEF factors them.
|
||||
* **API**: LIEF can be used in [C++](https://lief.re/doc/latest/doxygen/), Python, [Rust](https://lief-rs.s3.fr-par.scw.cloud/doc/latest/lief/index.html), C and
|
||||
[Node.js](https://github.com/Piebald-AI/node-lief) (unofficial, AI-generated)
|
||||
* **API**: LIEF can be used in [C++](https://lief.re/doc/latest/doxygen/), Python, [Rust](https://lief-rs.s3.fr-par.scw.cloud/doc/latest/lief/index.html) and C
|
||||
|
||||
**Extended features**:
|
||||
|
||||
@@ -36,15 +35,6 @@ modify and abstract ELF, PE and MachO formats.
|
||||
* [**Ghidra**](https://lief.re/doc/latest/plugins/ghidra/index.html)
|
||||
* [**BinaryNinja**](https://lief.re/doc/latest/plugins/binaryninja/index.html)
|
||||
|
||||
# Sponsors
|
||||
|
||||
<br />
|
||||
<p align="center">
|
||||
<a href="https://quansight.com/" target="_blank">
|
||||
<img width="300px" src="https://lief.re/quansight_logo.jpg"/><br />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# Content
|
||||
|
||||
- [About](#about)
|
||||
@@ -89,7 +79,7 @@ version = "0.0.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
lief = "0.17.3"
|
||||
lief = "0.17.6"
|
||||
```
|
||||
|
||||
## Python
|
||||
@@ -112,7 +102,7 @@ pip install [--user] --force-reinstall --index-url https://lief.s3-website.fr-pa
|
||||
- **Nightly**:
|
||||
* SDK: https://lief.s3-website.fr-par.scw.cloud/latest/sdk
|
||||
* Python Wheels: https://lief.s3-website.fr-par.scw.cloud/latest/lief
|
||||
- **v0.17.3**: https://github.com/lief-project/LIEF/releases/tag/0.17.3
|
||||
- **v0.17.6**: https://github.com/lief-project/LIEF/releases/tag/0.17.6
|
||||
|
||||
Here are guides to install or integrate LIEF:
|
||||
|
||||
@@ -230,7 +220,7 @@ Romain Thomas ([@rh0main](https://www.romainthomas.fr/)) - Formerly at [Quarksla
|
||||
|
||||
### License
|
||||
|
||||
LIEF is provided under the [Apache 2.0 license](https://github.com/lief-project/LIEF/blob/0.17.3/LICENSE).
|
||||
LIEF is provided under the [Apache 2.0 license](https://github.com/lief-project/LIEF/blob/0.17.6/LICENSE).
|
||||
|
||||
### Bibtex
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -702,6 +702,8 @@ enum LIEF_DYNAMIC_TAGS {
|
||||
LIEF_DT_HIPROC = 0x7FFFFFFF, /**< End of processor specific tags. */
|
||||
|
||||
LIEF_DT_GNU_HASH = 0x6FFFFEF5, /**< Reference to the GNU hash table. */
|
||||
LIEF_DT_TLSDESC_PLT = 0x6FFFFEF6, /**< Location of PLT entry for TLS descriptor resolver calls. */
|
||||
LIEF_DT_TLSDESC_GOT = 0x6FFFFEF7, /**< Location of GOT entry for TLS descriptor resolver PLT entry. */
|
||||
LIEF_DT_RELACOUNT = 0x6FFFFFF9, /**< ELF32_Rela count. */
|
||||
LIEF_DT_RELCOUNT = 0x6FFFFFFA, /**< ELF32_Rel count. */
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License",;
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -52,8 +52,7 @@ enum LIEF_PE_SUBSYSTEM {
|
||||
LIEF_PE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12, /**< An EFI driver with run-time services. */
|
||||
LIEF_PE_SUBSYSTEM_EFI_ROM = 13, /**< An EFI ROM image. */
|
||||
LIEF_PE_SUBSYSTEM_XBOX = 14, /**< XBOX. */
|
||||
LIEF_PE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION = 16, /**< A BCD application. */
|
||||
LIEF_PE_SUBSYSTEM_XBOX_CODE_CATALOG = 17,
|
||||
LIEF_PE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION = 16 /**< A BCD application. */
|
||||
};
|
||||
|
||||
struct Pe_OptionalHeader_t {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -23,8 +23,8 @@ if (LIEF_EXTERNAL_NANOBIND)
|
||||
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
|
||||
find_package(nanobind REQUIRED)
|
||||
else()
|
||||
set(NANOBIND_VERSION 2.11.0.r10.g5f0a380)
|
||||
set(NANOBIND_SHA256 SHA256=4494b2b580b400e98e4d847b6a9e2a3aeb99581ac7545f6efaa52605335fa806)
|
||||
set(NANOBIND_VERSION 2.8.0.r19.g617d5a0)
|
||||
set(NANOBIND_SHA256 SHA256=dfe63078063cb49979517130664e74b373d8f6f981a5636e1ee0201877aa46ee)
|
||||
set(NANOBIND_URL "${THIRD_PARTY_DIRECTORY}/nanobind-${NANOBIND_VERSION}.zip"
|
||||
CACHE STRING "URL to the Nanobind")
|
||||
FetchContent_Declare(nanobind
|
||||
|
||||
@@ -62,4 +62,4 @@ Romain Thomas `@rh0main <https://x.com/rh0main>`_
|
||||
|
||||
----
|
||||
|
||||
LIEF is provided under the `Apache 2.0 license <https://github.com/lief-project/LIEF/blob/0.15.1/LICENSE>`_
|
||||
LIEF is provided under the `Apache 2.0 license <https://github.com/lief-project/LIEF/blob/0.17.6/LICENSE>`_
|
||||
|
||||
@@ -45,18 +45,6 @@ def _compute_best(cls, *arg, **kwargs):
|
||||
|
||||
return WheelTag(pyvers, abis, archs)
|
||||
|
||||
def _get_vc_env(vc_arch: str) -> dict[str, str]:
|
||||
try:
|
||||
from setuptools import distutils # type: ignore[import,attr-defined]
|
||||
|
||||
return distutils._msvccompiler._get_vc_env(vc_arch) # type: ignore[no-any-return]
|
||||
except AttributeError:
|
||||
from setuptools._distutils import (
|
||||
_msvccompiler, # type: ignore[import,attr-defined]
|
||||
)
|
||||
|
||||
return _msvccompiler._get_vc_env(vc_arch) # type: ignore[no-any-return,attr-defined]
|
||||
|
||||
def _fix_env():
|
||||
config = get_config()
|
||||
if sys.platform.startswith("win"):
|
||||
@@ -64,7 +52,7 @@ def _fix_env():
|
||||
from setuptools import msvc
|
||||
is64 = sys.maxsize > 2**32
|
||||
arch = 'x64' if is64 else 'x86'
|
||||
ninja_env = _get_vc_env(arch)
|
||||
ninja_env = msvc.msvc14_get_vc_env(arch)
|
||||
os.environ.update(ninja_env)
|
||||
|
||||
if sys.platform.startswith("darwin"):
|
||||
|
||||
@@ -71,12 +71,7 @@ class Versioning:
|
||||
MA, MI, PA = map(int, tag.split(".")) # 0.9.0 -> (0, 9, 0)
|
||||
|
||||
if is_dev:
|
||||
if MI == 17:
|
||||
# Special case for the 0.17.0 which is the last version of
|
||||
# the 0.X.Y series
|
||||
tag = "1.0.0"
|
||||
else:
|
||||
tag = f"{MA}.{MI + 1}.{0}"
|
||||
tag = f"{MA}.{MI + 1}.{0}"
|
||||
|
||||
if count == '0' and not dirty:
|
||||
return tag
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* Copyright 2017 - 2026 R. Thomas
|
||||
* Copyright 2017 - 2026 Quarkslab
|
||||
/* Copyright 2017 - 2025 R. Thomas
|
||||
* Copyright 2017 - 2025 Quarkslab
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -392,9 +392,6 @@ class Section(lief.Section):
|
||||
@property
|
||||
def comdat_info(self) -> Section.ComdatInfo | None: ...
|
||||
|
||||
@property
|
||||
def coff_string(self) -> String: ...
|
||||
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
class Relocation(lief.Relocation):
|
||||
@@ -4325,6 +4325,10 @@ class DynamicEntry(lief.Object):
|
||||
|
||||
GNU_HASH = 1879047925
|
||||
|
||||
TLSDESC_PLT = 1879047926
|
||||
|
||||
TLSDESC_GOT = 1879047927
|
||||
|
||||
RELACOUNT = 1879048185
|
||||
|
||||
RELCOUNT = 1879048186
|
||||
@@ -1,10 +1,10 @@
|
||||
from collections.abc import Sequence
|
||||
import enum
|
||||
import io
|
||||
import lief.MachO
|
||||
import os
|
||||
from typing import Iterator, Optional, Union, overload
|
||||
|
||||
import lief.MachO
|
||||
|
||||
import lief
|
||||
import lief.objc
|
||||
@@ -641,16 +641,10 @@ class FatBinary:
|
||||
|
||||
def raw(self) -> list[int]: ...
|
||||
|
||||
def get(self, arg: Header.CPU_TYPE, /) -> Binary: ...
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
@overload
|
||||
def __getitem__(self, arg: int, /) -> Binary: ...
|
||||
|
||||
@overload
|
||||
def __getitem__(self, arg: Header.CPU_TYPE, /) -> Binary: ...
|
||||
|
||||
def __iter__(self) -> FatBinary.it_binaries: ...
|
||||
|
||||
def __str__(self) -> str: ...
|
||||
@@ -326,8 +326,6 @@ class OptionalHeader(lief.Object):
|
||||
|
||||
WINDOWS_BOOT_APPLICATION = 16
|
||||
|
||||
XBOX_CODE_CATALOG = 17
|
||||
|
||||
class DLL_CHARACTERISTICS(enum.IntFlag):
|
||||
def __repr__(self, /): ...
|
||||
|
||||
|
||||
@@ -2,13 +2,12 @@ from collections.abc import Sequence
|
||||
import enum
|
||||
import io
|
||||
import lief
|
||||
import lief.ELF
|
||||
import lief.MachO
|
||||
import lief.PE
|
||||
import os
|
||||
from typing import Iterator, Optional, Union, overload
|
||||
|
||||
import lief.ELF
|
||||
import lief.MachO
|
||||
|
||||
from . import (
|
||||
ART as ART,
|
||||
Android as Android,
|
||||
@@ -168,255 +167,6 @@ def hash(arg: str, /) -> int: ... # type: ignore
|
||||
|
||||
def to_json(arg: Object, /) -> str: ...
|
||||
|
||||
class BinaryStream:
|
||||
@property
|
||||
def size(self) -> int: ...
|
||||
|
||||
def __bool__(self) -> bool: ...
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
@property
|
||||
def pos(self) -> int: ...
|
||||
|
||||
def increment_pos(self, value: int) -> BinaryStream: ...
|
||||
|
||||
def decrement_pos(self, value: int) -> None: ...
|
||||
|
||||
def setpos(self, value: int) -> None: ...
|
||||
|
||||
def read_uleb128(self) -> tuple[Union[int,lief.lief_errors], int]: ...
|
||||
|
||||
def read_sleb128(self) -> tuple[Union[int,lief.lief_errors], int]: ...
|
||||
|
||||
def read_dwarf_encoded(self, encoding: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_string(self, maxsize: int = 18446744073709551615) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
def peek_string(self, maxsize: int = 18446744073709551615) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
def peek_string_at(self, offset: int, maxsize: int = 18446744073709551615) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def read_u16string(self) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def read_u16string(self, length: int) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u16string(self) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u16string(self, length: int) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u16string(self, offset: int, length: int) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
def read_mutf8(self, maxsize: int = 18446744073709551615) -> Union[str,lief.lief_errors]: ...
|
||||
|
||||
def peek_data(self, offset: int, size: int, virtual_address: int = 0) -> bytes | None: ...
|
||||
|
||||
@overload
|
||||
def read_data(self, size: int) -> bytes | None: ...
|
||||
|
||||
@overload
|
||||
def read_data(self) -> bytes | None: ...
|
||||
|
||||
def align(self, align_on: int) -> int: ...
|
||||
|
||||
def set_endian_swap(self, swap: bool) -> None: ...
|
||||
|
||||
def read_u8(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_i8(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u8(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u8(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i8(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i8(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_u16(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_i16(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u16(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u16(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i16(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i16(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_u32(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_i32(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u32(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u32(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i32(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i32(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_u64(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
def read_i64(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u64(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_u64(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i64(self) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def peek_i64(self, offset: int) -> Union[int,lief.lief_errors]: ...
|
||||
|
||||
@property
|
||||
def start(self) -> int: ...
|
||||
|
||||
@property
|
||||
def start_addr(self) -> int: ...
|
||||
|
||||
@property
|
||||
def end(self) -> int: ...
|
||||
|
||||
@property
|
||||
def end_addr(self) -> int: ...
|
||||
|
||||
@property
|
||||
def p(self) -> int: ...
|
||||
|
||||
@property
|
||||
def p_addr(self) -> int: ...
|
||||
|
||||
class SpanStream(BinaryStream):
|
||||
@overload
|
||||
def slice(self, offset: int, size: int) -> Union[SpanStream,lief.lief_errors]: ...
|
||||
|
||||
@overload
|
||||
def slice(self, offset: int) -> Union[SpanStream,lief.lief_errors]: ...
|
||||
|
||||
def to_vector(self) -> Optional[VectorStream]: ...
|
||||
|
||||
@property
|
||||
def content(self) -> bytes: ...
|
||||
|
||||
@property
|
||||
def __bytes__(self) -> bytes: ...
|
||||
|
||||
class VectorStream(BinaryStream):
|
||||
@staticmethod
|
||||
def from_file(path: Union[str, os.PathLike]) -> Union[VectorStream,lief.lief_errors]: ...
|
||||
|
||||
@staticmethod
|
||||
def from_bytes(buffer: bytes) -> Optional[VectorStream]: ...
|
||||
|
||||
@property
|
||||
def content(self) -> memoryview: ...
|
||||
|
||||
@overload
|
||||
def slice(self, arg0: int, arg1: int, /) -> Optional[SpanStream]: ...
|
||||
|
||||
@overload
|
||||
def slice(self, arg: int, /) -> Optional[SpanStream]: ...
|
||||
|
||||
class FileStream(BinaryStream):
|
||||
@staticmethod
|
||||
def from_file(arg: Union[str, os.PathLike], /) -> Union[FileStream,lief.lief_errors]: ...
|
||||
|
||||
@property
|
||||
def content(self) -> bytes: ...
|
||||
|
||||
class WriteStream:
|
||||
@overload
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
@overload
|
||||
def __init__(self, endian_swap: bool) -> None: ...
|
||||
|
||||
def reserve(self, size: int) -> WriteStream: ...
|
||||
|
||||
def increase_capacity(self, size: int) -> WriteStream: ...
|
||||
|
||||
def align(self, alignment: int, fill: int = 0) -> WriteStream: ...
|
||||
|
||||
@property
|
||||
def size(self) -> int: ...
|
||||
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
@property
|
||||
def tellp(self) -> int: ...
|
||||
|
||||
def seekp(self, pos: int) -> WriteStream: ...
|
||||
|
||||
def seek_end(self) -> WriteStream: ...
|
||||
|
||||
def pad(self, size: int, value: int = 0) -> WriteStream: ...
|
||||
|
||||
def set_endian_swap(self, swap: bool) -> None: ...
|
||||
|
||||
@property
|
||||
def endian_swap(self) -> bool: ...
|
||||
|
||||
@property
|
||||
def raw(self) -> memoryview: ...
|
||||
|
||||
def __bytes__(self) -> bytes: ...
|
||||
|
||||
def write_u8(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_i8(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_u16(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_i16(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_u32(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_i32(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_u64(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_i64(self, arg: int, /) -> WriteStream: ...
|
||||
|
||||
def write_uleb128(self, value: int) -> WriteStream: ...
|
||||
|
||||
def write_sleb128(self, value: int) -> WriteStream: ...
|
||||
|
||||
@overload
|
||||
def write(self, s: str) -> WriteStream: ...
|
||||
|
||||
@overload
|
||||
def write(self, buffer: bytes) -> WriteStream: ...
|
||||
|
||||
@overload
|
||||
def write(self, buffer: Sequence[int]) -> WriteStream: ...
|
||||
|
||||
@overload
|
||||
def write(self, other: WriteStream) -> WriteStream: ...
|
||||
|
||||
def put(self, c: int) -> WriteStream: ...
|
||||
|
||||
class Header(Object):
|
||||
class ARCHITECTURES(enum.Enum):
|
||||
@staticmethod
|
||||
@@ -673,9 +423,6 @@ class Binary(Object):
|
||||
|
||||
def load_debug_info(self, path: Union[str | os.PathLike]) -> DebugInfo: ...
|
||||
|
||||
@property
|
||||
def virtual_size(self) -> int: ...
|
||||
|
||||
def __str__(self) -> str: ...
|
||||
|
||||
class Section(Object):
|
||||
|
||||
+8981
-10073
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user