Commit Graph

742 Commits

Author SHA1 Message Date
Jörg Thalheim adf5c05a5e
Merge pull request #444 from NixOS/netbsd
cross compile to netbsd
2022-11-14 10:43:54 +01:00
Jörg Thalheim db6f4e6bb0 cross compile to netbsd 2022-11-14 10:38:29 +01:00
Jörg Thalheim fe789649fa
Merge pull request #443 from heirecka/also-pass-strip-to-tests
Also pass STRIP to the tests
2022-11-08 10:11:25 +01:00
Jörg Thalheim eab1466d9a
Merge pull request #442 from NixOS/ci
Ci
2022-11-08 10:07:07 +01:00
Heiko Becker d9ff398634 Also pass STRIP to the tests
It is used in tests/no-gnu-hash.sh.
2022-11-08 00:21:26 +01:00
Jörg Thalheim 204f950704 put version name in built exe files 2022-11-07 18:26:36 +01:00
Jörg Thalheim 016ca3d8e0 bump version 2022-11-07 18:26:36 +01:00
Jörg Thalheim ad0265668f
Merge pull request #441 from NixOS/ci
bump version 0.17.0
2022-11-07 10:57:32 +01:00
Jörg Thalheim e106c599eb bump version 0.17.0 2022-11-06 23:22:11 +01:00
Jörg Thalheim 0e5a9f0cc8
Merge pull request #438 from NixOS/ci
build patchelf on windows
2022-11-06 22:55:54 +01:00
Jörg Thalheim 199b134356
Merge branch 'master' into ci 2022-11-06 22:46:02 +01:00
Jörg Thalheim d6ee352ee6
Merge pull request #440 from NixOS/fix-cross
fix checkPhase for cross builds
2022-11-06 22:44:10 +01:00
Jörg Thalheim f7b184c004 fix checkPhase for cross builds
fixes https://github.com/NixOS/patchelf/issues/417
2022-11-06 22:40:51 +01:00
Jörg Thalheim 2b42ac343d ci: build windows binaries
build patchelf on window
2022-11-06 22:18:27 +01:00
Jörg Thalheim a1f7aa8bda
Merge pull request #439 from NixOS/mingw
build patchelf on windows
2022-11-06 21:12:06 +01:00
Jörg Thalheim efeec8d709 build patchelf on window 2022-11-06 21:08:25 +01:00
Jörg Thalheim b526538610 build patchelf on window 2022-11-06 20:28:27 +01:00
Jörg Thalheim 07bbf47e9c
Merge pull request #437 from NixOS/ci
make objdump/objcopy/readelf configurable and respect cross-compiling…
2022-11-06 15:49:06 +01:00
Jörg Thalheim 053c2eb871
Merge pull request #436 from NixOS/ci
Refactor flake.nix
2022-11-06 15:38:53 +01:00
Jörg Thalheim b0599fe776 make objdump/objcopy/readelf configurable and respect cross-compiling related prefixes 2022-11-06 15:38:38 +01:00
Jörg Thalheim c543a45f7f remove aarch64 from build package set for now 2022-11-06 15:35:15 +01:00
Jörg Thalheim b3f3feea53 drop patchelf-musl on i686 2022-11-06 15:28:05 +01:00
Jörg Thalheim 94ef48393a refactor flake to no longer use overlay + re-import nixpkgs 2022-11-06 15:25:50 +01:00
Jörg Thalheim 5c80c59a4c drop deprecated flake output attributes 2022-11-06 15:07:43 +01:00
Jörg Thalheim 78a2a707e4
Merge pull request #435 from NixOS/ci
add workaround for readelf from binutils 2.30
2022-11-06 14:03:23 +01:00
Jörg Thalheim 19c1a2fdd6 add workaround for readelf from binutils 2.30 2022-11-06 13:58:44 +01:00
Jörg Thalheim ba47f658cb
Merge pull request #434 from NixOS/ci
update vendored elf file
2022-11-06 10:54:47 +01:00
Jörg Thalheim 2cb863fb75 update vendored elf file 2022-11-06 10:26:41 +01:00
Jörg Thalheim 90fb373b58
Merge pull request #433 from NixOS/ci
patchelf: correct page size for sparc64/sparc32
2022-11-06 10:11:44 +01:00
Jörg Thalheim da968fb849 patchelf: correct page size for sparc64/sparc32 2022-11-06 10:07:02 +01:00
Jörg Thalheim 337b8dd141
Merge pull request #432 from NixOS/flake-deps
switch to nixpkgs-unstable in flake
2022-11-06 09:00:54 +01:00
Jörg Thalheim c3682eb555 switch to nixpkgs-unstable in flake 2022-11-06 08:56:49 +01:00
Jörg Thalheim 26559397d9
Merge pull request #430 from NixOS/ia64-fixes
write out replace sections in original order
2022-11-05 14:30:01 +01:00
Jörg Thalheim 42394e880b write out replace sections in original order
Libc and other programs sometimes make assumption in which order
sections.

i.e. glibc expects that the strtab is after the symtab section: 9cc9d61ee1/elf/dl-fptr.c (L179)

To decrease the likelyhood of breakages we keep the relative order the
same when replacing section.
2022-11-05 14:12:11 +01:00
Jörg Thalheim 7c18779e85
Merge pull request #428 from NixOS/ia64-fixes
fix pagesize on ia64
2022-11-04 17:07:53 +01:00
Jörg Thalheim b21526c11a fix pagesize on ia64 2022-11-04 17:03:08 +01:00
Jörg Thalheim a6ca31778b
Merge pull request #427 from NixOS/ci
Set dev version suffix in master branch
2022-11-04 16:32:41 +01:00
Jörg Thalheim f9801198bf Set dev version suffix in master branch 2022-11-04 16:31:09 +01:00
Jörg Thalheim 438d23e29c no newline in version file 2022-10-28 09:41:27 +02:00
Jörg Thalheim c6d9c49f24 patchelf: bump version 2022-10-28 09:39:02 +02:00
Jörg Thalheim af77f12554
Merge pull request #415 from Bo98/load-overlap-fix
Rework file shifting to avoid sections crossing multiple segments
2022-10-26 08:47:39 +02:00
Jörg Thalheim ec72eeb4dd
Merge pull request #421 from NixOS/riscv64
ci: add riscv64 support
2022-10-26 08:46:23 +02:00
Jörg Thalheim 7b9def4069 ci: add riscv64 support 2022-10-26 08:41:36 +02:00
Jörg Thalheim 2d6e7cf421
Merge pull request #420 from NixOS/flake-update
Flake update
2022-10-26 08:27:53 +02:00
Jörg Thalheim 582a96a2e3 update nixpkgs 2022-10-26 08:22:00 +02:00
Bo Anderson 15f02b0f7a Skip empty PT_NOTE sections
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.
2022-10-26 08:20:56 +02:00
Jörg Thalheim 0582e4d9c2
Merge pull request #412 from Bo98/scratch-fix
tests/contiguous-note-sections.sh: use scratch directory
2022-10-26 08:18:51 +02:00
Jörg Thalheim 55d5db9dde
Merge pull request #411 from Bo98/notes-bounds
Fix out of bounds access when increasing program header table
2022-10-26 08:18:40 +02:00
Jörg Thalheim 80329739f3
Merge pull request #414 from Bo98/gnu-property
Sync .note.gnu.property to PT_GNU_PROPERTY
2022-10-26 08:17:51 +02:00
Jörg Thalheim b751eeb137
Merge pull request #419 from xiaoxiaoafeifei/master
Fix Out-of-bounds read in the function modifyRPath
2022-10-26 08:11:17 +02:00