Skip to content

add --no-sort option #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from Jun 19, 2022
Merged

add --no-sort option #378

merged 2 commits into from Jun 19, 2022

Conversation

ghost
Copy link

@ghost ghost commented Jun 19, 2022

This PR adds a command line option --no-sort which causes patchelf
to refrain from sorting the program headers and section headers. A
comment in the preexisting source code says that this was done only
"for neatness".

The --no-sort option, combined with readelf -a and colordiff is
very useful for debugging patchelf problems. Without --no-sort the
diffs are not usable -- everything changes because of the sorting.

@ghost ghost marked this pull request as draft June 19, 2022 01:36
@ghost ghost marked this pull request as ready for review June 19, 2022 01:37
This PR adds a command line option `--no-sort` which causes patchelf
to refrain from sorting the program headers and section headers.  A
comment in the preexisting source code says that this was done only
"for neatness".

The `--no-sort` option, combined with `readelf -a` and `colordiff` is
very useful for debugging patchelf problems.  Without `--no-sort` the
diffs are not usable -- everything changes because of the sorting.
@ghost ghost requested a review from Mic92 June 19, 2022 05:39
@Mic92 Mic92 merged commit a8dcbc9 into NixOS:master Jun 19, 2022
@ghost ghost deleted the pr/no-sort branch June 19, 2022 05:55
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.

1 participant