mirror of
https://github.com/lief-project/LIEF.git
synced 2026-10-12 02:17:46 +00:00
Rename master branch into main
This commit is contained in:
@@ -5,5 +5,5 @@ endpoint = "https://s3.fr-par.scw.cloud"
|
||||
|
||||
[lief.deploy]
|
||||
branches = ["master", "deploy", "devel"]
|
||||
main-branches = ["master", "main"]
|
||||
main-branches = ["main", "master"]
|
||||
default-dir = "latest"
|
||||
|
||||
@@ -4,7 +4,7 @@ on:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'LIEF branch'
|
||||
default: master
|
||||
default: main
|
||||
required: false
|
||||
type: string
|
||||
what:
|
||||
@@ -19,7 +19,7 @@ on:
|
||||
type: string
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
jobs:
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -278,9 +278,9 @@ jobs:
|
||||
CIRCLE_CI_TOKEN: ${{ secrets.CIRCLE_CI_TOKEN }}
|
||||
steps:
|
||||
- name: Trigger documentation
|
||||
if: github.ref == 'refs/heads/master'
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
curl --request POST --url ${CIRCLE_CI_URL} \
|
||||
--header "Circle-Token: ${CIRCLE_CI_TOKEN}" \
|
||||
--header 'content-type: application/json' \
|
||||
--data '{"parameters":{"lief-branch":"master"}}'
|
||||
--data '{"parameters":{"lief-branch":"main"}}'
|
||||
|
||||
@@ -2,6 +2,7 @@ name: LIEF Windows
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'master'
|
||||
- 'release-**'
|
||||
- 'release/**'
|
||||
|
||||
@@ -4,6 +4,7 @@ on:
|
||||
branches:
|
||||
- '**'
|
||||
- '!master'
|
||||
- '!main'
|
||||
- '!release-**'
|
||||
- '!release/**'
|
||||
tags-ignore:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<p align="center" >
|
||||
<img width="90%" src="https://github.com/lief-project/LIEF/blob/master/.github/images/architecture.png"/><br />
|
||||
<img width="90%" src="https://github.com/lief-project/LIEF/blob/main/.github/images/architecture.png"/><br />
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
@@ -8,27 +8,27 @@
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/lief-project/LIEF/actions/workflows/linux-x86-64.yml">
|
||||
<img alt="Linux x86-64 CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/linux-x86-64.yml?branch=master&label=Linux%20x86-64&logo=github">
|
||||
<img alt="Linux x86-64 CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/linux-x86-64.yml?branch=main&label=Linux%20x86-64&logo=github">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/lief-project/LIEF/actions/workflows/linux-aarch64.yml">
|
||||
<img alt="Linux AArch64 CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/linux-aarch64.yml?branch=master&label=Linux%20AArch64&logo=github">
|
||||
<img alt="Linux AArch64 CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/linux-aarch64.yml?branch=main&label=Linux%20AArch64&logo=github">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/lief-project/LIEF/actions/workflows/android.yml">
|
||||
<img alt="Android CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/android.yml?branch=master&label=Android&logo=github">
|
||||
<img alt="Android CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/android.yml?branch=main&label=Android&logo=github">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/lief-project/LIEF/actions/workflows/osx.yml">
|
||||
<img alt="macOS CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/osx.yml?branch=master&label=macOS&logo=github">
|
||||
<img alt="macOS CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/osx.yml?branch=main&label=macOS&logo=github">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/lief-project/LIEF/actions/workflows/ios.yml">
|
||||
<img alt="iOS CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/ios.yml?branch=master&label=iOS&logo=github">
|
||||
<img alt="iOS CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/ios.yml?branch=main&label=iOS&logo=github">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/lief-project/LIEF/actions/workflows/windows-all.yml">
|
||||
<img alt="Windows CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/windows-all.yml?branch=master&label=Windows&logo=github">
|
||||
<img alt="Windows CI status" src="https://img.shields.io/github/actions/workflow/status/lief-project/LIEF/windows-all.yml?branch=main&label=Windows&logo=github">
|
||||
</a>
|
||||
|
||||
<a href="https://github.com/lief-project/LIEF/releases">
|
||||
|
||||
@@ -4,6 +4,9 @@ Changelog
|
||||
0.15.0 - Not Released Yet
|
||||
-------------------------
|
||||
|
||||
:Repo:
|
||||
* ``master`` branch has been renamed ``main``
|
||||
|
||||
:ELF:
|
||||
* The ``static_symbols`` API functions has been renamed in ``symtab_symbols``.
|
||||
|
||||
|
||||
@@ -215,14 +215,14 @@ Continuous Integration
|
||||
|
||||
LIEF uses CI Github Action to test and release nightly builds. The configuration
|
||||
of this CI can also be a good source of information for the compilation process.
|
||||
In particular, `scripts/docker/run_linux_sdk <https://github.com/lief-project/LIEF/blob/master/scripts/docker/run_linux_sdk.sh>`_
|
||||
In particular, `scripts/docker/run_linux_sdk <https://github.com/lief-project/LIEF/blob/main/scripts/docker/run_linux_sdk.sh>`_
|
||||
contains the build process to generate the **Linux x86-64 SDK**.
|
||||
|
||||
On Windows, the SDK is built with the following Python script:
|
||||
`scripts/windows/package_sdk.py <https://github.com/lief-project/LIEF/blob/master/scripts/windows/package_sdk.py>`_
|
||||
`scripts/windows/package_sdk.py <https://github.com/lief-project/LIEF/blob/main/scripts/windows/package_sdk.py>`_
|
||||
|
||||
For **OSX & iOS**, the CI configs `.github/workflows/ios.yml <https://github.com/lief-project/LIEF/blob/master/.github/workflows/ios.yml>`_
|
||||
and `.github/workflows/osx.yml <https://github.com/lief-project/LIEF/blob/master/.github/workflows/osx.yml>`_
|
||||
For **OSX & iOS**, the CI configs `.github/workflows/ios.yml <https://github.com/lief-project/LIEF/blob/main/.github/workflows/ios.yml>`_
|
||||
and `.github/workflows/osx.yml <https://github.com/lief-project/LIEF/blob/main/.github/workflows/osx.yml>`_
|
||||
to compile (and cross-compile) LIEF for these platforms.
|
||||
|
||||
CMake Options
|
||||
|
||||
@@ -44,7 +44,7 @@ Frida & LIEF
|
||||
One less known injection technique but quite old is based on modifying the ELF format. It has been well explained by Mayhem in `Phrack <http://phrack.org/issues/61/8.html>`_ [1]_ and LIEF provides a user-friendly API [2]_ to do it.
|
||||
|
||||
To summarize, executable formats include libraries that are linked with executable. We can have list of linked libraries with
|
||||
``ldd`` or ``readelf`` (Unix) or with `elf_reader.py <https://github.com/lief-project/LIEF/blob/master/examples/python/elf_reader.py>`_ (Linux, Windows, OSX):
|
||||
``ldd`` or ``readelf`` (Unix) or with `elf_reader.py <https://github.com/lief-project/LIEF/blob/main/examples/python/elf_reader.py>`_ (Linux, Windows, OSX):
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
|
||||
@@ -186,8 +186,8 @@ Then, we can use ``openssl`` to process its content:
|
||||
|
||||
object: undefined (1.3.6.1.4.1.311.2.1.11)
|
||||
|
||||
The `authenticode_reader.py <https://github.com/lief-project/LIEF/blob/master/examples/python/authenticode/authenticode_reader.py>`_
|
||||
script located in the `examples/ <https://github.com/lief-project/LIEF/tree/master/examples/python/authenticode>`_ directory
|
||||
The `authenticode_reader.py <https://github.com/lief-project/LIEF/blob/main/examples/python/authenticode/authenticode_reader.py>`_
|
||||
script located in the `examples/ <https://github.com/lief-project/LIEF/tree/main/examples/python/authenticode>`_ directory
|
||||
can also be used to inspect the signature:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
@@ -33,7 +33,7 @@ else()
|
||||
# URL of the LIEF repo (Can be your fork)
|
||||
set(LIEF_GIT_URL "https://github.com/lief-project/LIEF.git")
|
||||
|
||||
# LIEF's version to be used (can be 'master')
|
||||
# LIEF's version to be used (can be 'main')
|
||||
set(LIEF_VERSION 0.13.0)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
@@ -12,7 +12,7 @@ set(LIEF_INSTALL_DIR "${LIEF_PREFIX}/install")
|
||||
# URL of the LIEF repo (Can be your fork)
|
||||
set(LIEF_GIT_URL "https://github.com/lief-project/LIEF.git")
|
||||
|
||||
# LIEF's version to be used (can be 'master')
|
||||
# LIEF's version to be used (can be 'main')
|
||||
set(LIEF_VERSION 0.13.0)
|
||||
|
||||
# LIEF compilation config
|
||||
|
||||
Reference in New Issue
Block a user