summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Allow overriding pagesize at runtime via a command-line argumentFelipe Sateler2016-01-151-2/+8
|
* Allow specifying page size at configure timeFelipe Sateler2016-01-151-7/+1
|
* Don't use dynamic page sizeEelco Dolstra2016-01-081-3/+4
| | | | | | | | | | This mostly reverts 08050dd5e3701b29e5628e1ec7d37c1cd6529c57 (#54) because the page size of the host is not necessarily the same as the page size of the binary. For a proper fix, we'll need some way to determine the page size of the binary, but ELF doesn't readily provide this information. Fixes #69.
* Merge branch 'print-needed' of https://github.com/darealshinji/patchelfEelco Dolstra2016-01-081-2/+27
|\
| * Add --print-needed command to list all DT_NEEDED entries of a filedarealshinji2015-07-241-2/+27
| |
* | Merge branch 'patch-2' of https://github.com/darealshinji/patchelfEelco Dolstra2016-01-081-1/+1
|\ \
| * | Description of `--set-soname' commanddarealshinji2015-07-241-1/+1
| |/ | | | | `--set-soname` now creates a new DT_SONAME entry if it doesn't exist.
* | Merge branch 'patch-3' of https://github.com/darealshinji/patchelfEelco Dolstra2016-01-081-8/+5
|\ \
| * | Remove unused parameter `fileMode'darealshinji2015-07-241-8/+5
| |/ | | | | | | I forgot to do that with this commit: https://github.com/NixOS/patchelf/commit/8eb28c00b6a78928cfa91728b1eba911a4ef49c1 Warnings only appear if -Wextra is turned on.
* | Remaining sing-compare warningsdarealshinji2015-11-291-3/+3
|/ | | Get rid of remaining sing-compare warnings that appear when using gcc 5.2.
* Merge branch 'skip-missing' of https://github.com/ttuegel/patchelfEelco Dolstra2015-07-231-3/+10
|\
| * Allow DT_REL without .rel.dyn or .rel.gotThomas Tuegel2014-09-121-3/+10
| | | | | | | | | | Some DT_REL files are missing both .rel.dyn and .rel.got. This doesn't seem to be an error, so it shouldn't be treated as such.
* | Merge branch 'move-sections' of https://github.com/ttuegel/patchelfEelco Dolstra2015-07-231-5/+16
|\ \
| * | Move section headers if they would be overwrittenThomas Tuegel2014-09-121-5/+16
| |/ | | | | | | | | | | | | When rewriting the sections of an executable, it can happen that the section headers occur too early in the file and would be overwritten by the replaced sections. If this would happen, we move the section headers to the end of the file.
* | Merge branch 'patch-3' of https://github.com/darealshinji/patchelfmodEelco Dolstra2015-07-231-1/+31
|\ \
| * | Add '--remove-rpath' optiondarealshinji2015-07-131-1/+31
| | |
* | | Merge branch 'patch-2' of https://github.com/darealshinji/patchelfmodEelco Dolstra2015-07-231-58/+69
|\ \ \
| * | | Create new soname entry if shlib is missing one, merge modifySoname() and ↵darealshinji2015-07-131-58/+69
| |/ / | | | | | | | | | | | | getSoname() Basically this is just a modified copy of the rpath code
* | | Merge branch 'patch-1' of https://github.com/darealshinji/patchelfmodEelco Dolstra2015-07-231-30/+9
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: configure.ac
| * | | Don't create a temporary copy to not break hardlinks (fixes #32)darealshinji2015-07-131-30/+9
| |/ /
* | | Configure automatically the page size with a runtime call, solve the issue ↵Adrien Devresse2015-07-231-21/+27
|/ / | | | | | | #53 related to prtability on powerpc64 architecture
* | Quick fix for #47Eelco Dolstra2015-07-101-1/+1
| |
* | Merge pull request #35 from darealshinji/patch-2Eelco Dolstra2015-06-231-217/+847
|\ \ | | | | | | Update elf.h
| * | comment out Glibc-specific linesdarealshinji2014-08-291-4/+4
| | |
| * | Update elf.hdarealshinji2014-08-281-217/+847
| |/
* | Shut up some warningsEelco Dolstra2014-11-061-9/+5
| |
* | let's print compiler warningsdarealshinji2014-11-061-0/+2
| |
* | Add option --no-default-libChangli Gao2014-10-221-0/+50
|/ | | | | Marks the object that the search for dependencies of this object will ignore any default library search paths.
* Use libattr and libacl to copy permissions if availableJeremy Sanders2014-07-291-0/+17
|
* Merge branch 'master' of github.com:ext/patchelfEelco Dolstra2014-04-241-1/+1
|\
| * support -h in addition to --helpDavid Sveningsson2013-12-171-1/+1
| |
* | Merge branch 'master' of github.com:rgcjonas/patchelfEelco Dolstra2014-04-241-1/+111
|\ \
| * | Add ability to add and replace DT_NEEDED entriesJonas Kuemmerlin2013-04-281-1/+111
| |/
* | Clear help message for --print-soname and --set-soname optionsChingis Dugarzhapov2014-04-191-2/+2
| | | | | | | | Also fixed bad SONAME positioning in help output
* | Added assertion in TODO, removed some useless debug msgs...Chingis Dugarzhapov2014-04-101-6/+23
| |
* | raise error if no DT_SONAME foundChingis Dugarzhapov2014-04-101-1/+9
| |
* | --set-soname, fixed help messageChingis Dugarzhapov2014-04-101-1/+1
| |
* | --set-soname with .dynstr section resize, proper debug messagesChingis Dugarzhapov2014-04-101-3/+17
| |
* | --set-soname, first working prototypeChingis Dugarzhapov2014-04-091-5/+40
| |
* | Added --print-soname option, to print DT_SONAME entry of .dynamic sectionChingis Dugarzhapov2014-04-081-1/+33
| |
* | In symbol tables, rewrite st_value for STT_SECTION entriesEelco Dolstra2014-01-141-0/+4
| |
* | Handle invalid symbol table entries that refer to non-existent sectionsEelco Dolstra2014-01-141-3/+8
|/ | | | | | | | For instance, libcairo-swt.so from Eclipse SDK 4.2.2 has entries like: 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 even though there is no section 30. So ignore these.
* Remove debug statementEelco Dolstra2013-01-161-2/+0
|
* Add ‘--remove-needed’ optionEelco Dolstra2013-01-161-2/+42
| | | | | | | This allows removing the specified DT_NEEDED entries from the dynamic section. Closes #4.
* Comment out overly verbose debug lineEelco Dolstra2012-08-211-1/+1
|
* Rewrite the st_shndx field in symbol tablesEelco Dolstra2012-08-211-4/+29
| | | | | | | The st_shndx field in symbol tables specifies the index of the section that contains the symbol. Since we reorder sections, we need to update this field as well. Otherwise programs like gdb won't be able to resolve addresses to symbol names (and will print "?? ()" instead).
* Remove trailing whitespaceEelco Dolstra2012-08-211-52/+52
|
* * Support executables created by the Gold linker (NixOS/140). TheseEelco Dolstra2011-09-111-5/+40
| | | | | | | | | | | | are marked as ET_DYN (not ET_EXEC) and have a starting virtual address of 0 so they cannot grow downwards. In order not to run into a Linux kernel bug, the virtual address and the offset of the new PT_LOAD segment have to be equal; otherwise ld-linux segfaults. To ensure this, it may be necessary to add some padding to the executable (potentially a lot of padding, if the executable has a large uninitialised data segment). * Use size_t rather than off_t in some places.
* * Fix patching a little-endian binary on a big-endian machine. ThisEelco Dolstra2010-08-261-5/+5
| | | | | fixes the no-rpath test on powerpc-linux.
* * Update DT_RELA. Eelco Dolstra2010-08-261-1/+2
|