Skip to content

Conversation

@fengjixuchui
Copy link
Owner

Thank you!

Please do your best to include a regression test
so that the quality of future releases can be preserved.

dmsck and others added 30 commits June 30, 2022 14:38
This commit adds an ability to print and change the EI_OSABI field
of the ELF header.

Signed-off-by: Dmitry Moskalchuk <[email protected]>
…ce-add-needed.sh (fixes #406)

ldd(1) usually returns for ELF binaries output like this:

	libc.so.6 => /lib64/libc.so.6 (0x00007fbacd6ca000)

But with glibc-hwcaps, the output could also be like this:

	libc.so.6 => /lib64/glibc-hwcaps/power9/libc-2.28.so (0x00007fffb5800000)

See also: https://sourceware.org/pipermail/libc-alpha/2020-June/115250.html
Handle glibc-hwcaps on ppc64le on CentOS/RHEL/Rocky 8 for tests/replace-add-needed.sh (fixes #406)
Add --print-os-abi and --set-os-abi options
#393

Appearantly there are compilers that support -std=c++17 but do not
really support c++17.
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](cachix/install-nix-action@v17...v18)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…nstall-nix-action-18

Bump cachix/install-nix-action from 17 to 18
Fix Out-of-bounds read in the function modifyRPath
Sync .note.gnu.property to PT_GNU_PROPERTY
Fix out of bounds access when increasing program header table
tests/contiguous-note-sections.sh: use scratch directory
Previous versions of patchelf prior to 0.12 could create empty PT_NOTE sections. For backwards compatibility reasons, we should not error on such binaries.

Fixes #400.
ci: add riscv64 support
Rework file shifting to avoid sections crossing multiple segments
Mic92 and others added 29 commits November 4, 2022 17:03
Libc and other programs sometimes make assumption in which order
sections.

i.e. glibc expects that the strtab is after the symtab section: https://github.com/bminor/glibc/blob/9cc9d61ee12f2f8620d8e0ea3c42af02bf07fe1e/elf/dl-fptr.c#L179

To decrease the likelyhood of breakages we keep the relative order the
same when replacing section.
write out replace sections in original order
switch to nixpkgs-unstable in flake
patchelf: correct page size for sparc64/sparc32
update vendored elf file
add workaround for readelf from binutils 2.30
make objdump/objcopy/readelf configurable and respect cross-compiling…
build patchelf on windows
build patchelf on window
fix checkPhase for cross builds
build patchelf on windows
@fengjixuchui fengjixuchui merged commit 1a038d5 into fengjixuchui:master Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants