Commit Graph

367 Commits

Author SHA1 Message Date
Domen Kožar
dadb65f97e README: strip bug was fixed 2020-06-05 17:14:46 +02:00
Domen Kožar
aa0b0e705f Merge pull request #104 from mkoloberdin/master
tests: Do not exit on an expected failure code.
2020-06-03 23:21:11 +02:00
Domen Kožar
81c0ea3eb8 README: clarify testing 2020-06-03 18:52:58 +02:00
Domen Kožar
083cbd5264 Add issue templates 2020-06-03 17:09:49 +02:00
Domen Kožar
4aff679d9e Merge pull request #171 from lkollar/no-memset-soname
Remove zeroing out logic in modifySoname
2020-06-03 16:02:39 +02:00
Domen Kožar
640a35faaa Merge pull request #202 from rpurdie/master
Fix shared library corruption when rerunning patchelf
2020-06-03 16:01:03 +02:00
Domen Kožar
6dfc3c20a9 Merge pull request #204 from NixOS/github-actions
github actions -> travis
2020-06-03 15:51:09 +02:00
Domen Kožar
ab0d67ba18 nixpkgs: 19.03 -> 20.03 2020-06-03 15:49:33 +02:00
Domen Kožar
2e881abad1 github actions -> travis 2020-06-03 15:49:33 +02:00
Domen Kožar
12e2b7b813 Merge pull request #127 from bartosh/master
fix adjusting startPage
2020-06-03 15:34:06 +02:00
Domen Kožar
12e462204c Merge pull request #203 from priegger/fix/readme
fix README -> README.me in some more places
2020-06-03 14:08:00 +02:00
Philipp Riegger
2805175e8f fix README -> README.me in some more places 2020-06-03 14:03:32 +02:00
Domen Kožar
67091ca1f9 Merge pull request #137 from speleo3/force-rpath-94
Consistently use --force-rpath
2020-06-03 13:45:12 +02:00
Thomas Holder
6e5e98ce77 Consistently use --force-rpath (fixes #94) 2020-06-03 13:37:13 +02:00
Richard Purdie
ad5f1f078b Fix shared library corruption when rerunning patchelf
When running patchelf on some existing patchelf'd binaries to change to longer
RPATHS, ldd would report the binaries as invalid. The output of objdump -x on
those libraryies should show the top of the .dynamic section is getting trashed,
something like:

0x600000001 0x0000000000429000
0x335000 0x0000000000335000
0xc740 0x000000000000c740
0x1000 0x0000000000009098
SONAME libglib-2.0.so.0

(which should be RPATH and DT_NEEDED entries)

This was tracked down to the code which injects the PT_LOAD section.

The issue is that if the program headers were previously relocated to the end
of the file which was how patchelf operated previously, the relocation code
wouldn't work properly on a second run as it now assumes they're located after
the elf header. This change forces them back to immediately follow the elf
header which is where the code has made space for them.

Should fix https://github.com/NixOS/patchelf/issues/170
and https://github.com/NixOS/patchelf/issues/192

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-06-03 12:14:58 +01:00
Domen Kožar
f3411a986e https://github.com/NixOS/patchelf/issues/191 2020-06-02 19:33:47 +02:00
Eelco Dolstra
8fdd005413 Merge pull request #201 from dstahlke/outputflag
Added --output flag
2020-06-02 10:39:39 +02:00
Dan L. Stahlke
71ed440127 Added --output flag 2020-06-01 12:12:54 -07:00
Domen Kožar
a4676c66ce Merge pull request #200 from NixOS/domenkozar-patch-1
Update Makefile.am
2020-05-28 15:07:04 +02:00
Domen Kožar
8b65be0dae Update Makefile.am 2020-05-28 15:06:07 +02:00
Domen Kožar
6472720860 README: markdown 2020-05-28 15:03:49 +02:00
Eelco Dolstra
c9a54bb365 flake.lock: Add
Flake input changes:

* Added 'nixpkgs': 'github:NixOS/nixpkgs/48723f48ab92381f0afd50143f38e45cf3080405'
2020-05-27 19:31:01 +02:00
Eelco Dolstra
978325def6 Merge pull request #198 from pespin/pespin/master
Update doc to describe multiple filename args allowed
2020-04-08 15:25:12 +02:00
Pau Espin Pedrol
711a20dcbf Update doc to describe multiple filename args allowed
Commit 936bae418b added support to handle
several files at once, but forgot to update the man and help output to
describe it.

Fixes: 936bae418b
2020-04-08 15:10:22 +02:00
Eelco Dolstra
cd7955af31 release.nix: Fix evaluation 2020-04-06 14:46:12 +02:00
Eelco Dolstra
2ba64817ec Use lastModified 2019-10-23 13:59:05 +02:00
Eelco Dolstra
ac07356b08 flake.nix: Support multiple platforms 2019-10-23 13:50:44 +02:00
Eelco Dolstra
8cc2d64444 flake.nix: Provide a Nixpkgs overlay
Also update the lock file.
2019-09-19 00:06:50 +02:00
Eelco Dolstra
30da670056 Update flake 2019-08-30 16:54:13 +02:00
Eelco Dolstra
1bc54f0f74 epoch -> edition 2019-07-11 13:57:32 +02:00
Eelco Dolstra
e153a3bdd1 Merge pull request #175 from lkollar/travis-ci
Add .travis.yml to enable CI
2019-07-02 11:17:36 +02:00
Laszlo Kiss-Kollar
c4de05689b Add .travis.yml to enable CI 2019-07-02 09:45:23 +01:00
Eelco Dolstra
9650702f37 Update flake.lock 2019-06-06 13:28:16 +02:00
Nick Van den Broeck
58168afa12 Updated epoch (#172) 2019-06-03 19:30:17 +02:00
Eelco Dolstra
1d47377670 Update flake.nix 2019-05-31 20:49:38 +02:00
Laszlo Kiss-Kollar
e2fe56fdf3 Remove zeroing out logic in modifySoname
The original SONAME is filled with 'X' characters in the modifySoname
function. This can cause issues if the .dynstr entry is still referenced
in other sections, e.g. some libraries use the SONAME entry as version
specifiers.
2019-05-29 08:09:45 +01:00
Eelco Dolstra
1c95784c02 flake.nix: Set epoch 2019-05-28 22:47:37 +02:00
Eelco Dolstra
df5538a2d8 Update flake.lock 2019-05-09 15:09:49 +02:00
Eelco Dolstra
d6c6f2ab10 Fix missing revCount 2019-05-08 22:33:21 +02:00
Eelco Dolstra
26e6068cff Doh 2019-05-08 22:15:26 +02:00
Eelco Dolstra
801f67a55f Add flake.nix 2019-05-08 22:14:33 +02:00
Eelco Dolstra
e1e39f3639 Update release.nix 0.10 2019-03-28 23:08:17 +01:00
Eelco Dolstra
1b392602fe Update README 2019-03-28 22:56:27 +01:00
Eelco Dolstra
60662393ba Merge pull request #149 from ezquat/fix-66
Fix issue #66: ignore 0th section header when sorting, don't overwrite NOBITS
2019-03-06 14:01:14 +08:00
Ezra Cooper
52ab908394 Fix issue #66 by ignoring the first section header when sorting, and not overwriting NOBITS entries. 2018-06-21 11:14:10 -07:00
Eelco Dolstra
27ffe8ae87 Merge pull request #148 from stmarkevich/bigfile
fix reading and writing big files (e.g. > 2Gb)
2018-05-09 11:48:29 +02:00
stanislav.markevich
ba2695a811 fix reading and writing big files (e.g. > 2Gb) 2018-05-08 21:28:26 +03:00
Eelco Dolstra
1fa4d36fea Merge pull request #123 from lheckemann/multiple-args
Allow multiple filenames to patch
2018-01-29 11:37:21 +01:00
Eelco Dolstra
48452cf6b4 Fix indentation 2018-01-08 19:07:17 +01:00
Eelco Dolstra
b6d0317803 Merge branch 'strict_ordering' of https://github.com/kmillar/patchelf 2018-01-08 19:06:46 +01:00