app-editors/cursor: add 0.44.9, drop 0.44.8-r1
[gentoo-zh.git] / dev-util / patchelf-liblol / files / patchelf-0.18.0-alpha.patch
blobc546a4dc2e9b77cf22500dc9b7551cf282712b8d
1 https://bugs.gentoo.org/909738
2 https://github.com/NixOS/patchelf/pull/529
3 Note this has removed the unit test changes because it involves adding a binary
4 file which is not supported in portage for now, see
5 https://bugs.gentoo.org/835964
7 commit dbc9aeaadfd982b2d8a04eb74cbcecb83208844d
8 Author: matoro <matoro@users.noreply.github.com>
9 Date: Sat Nov 4 20:01:22 2023 -0400
11 Fix page size on Alpha
13 All tests pass.
15 Also explicitly specifies -no-pie for executables which should have it
16 disabled, to be compatible with gccs built with --enable-default-pie.
18 diff --git a/src/patchelf.cc b/src/patchelf.cc
19 index b42111d..b4d4a7d 100644
20 --- a/src/patchelf.cc
21 +++ b/src/patchelf.cc
22 @@ -367,6 +367,7 @@ unsigned int ElfFile<ElfFileParamNames>::getPageSize() const noexcept
23 // requirements. There is no authoritative list of these values. The
24 // current list is extracted from GNU gold's source code (abi_pagesize).
25 switch (rdi(hdr()->e_machine)) {
26 + case EM_ALPHA:
27 case EM_IA_64:
28 case EM_MIPS:
29 case EM_PPC: