Commit Graph

211 Commits

Author SHA1 Message Date
darealshinji
eb76b51d8e Update elf.h 2014-08-28 19:22:47 +02:00
Eelco Dolstra
bf4b579d63 Fix build on Linux
http://hydra.nixos.org/build/13337912
2014-08-18 12:40:05 +02:00
Eelco Dolstra
c22eca7a0d Style 2014-07-29 03:00:21 +02:00
Eelco Dolstra
69b3a62231 Add dependency on acl/attr packages 2014-07-29 02:49:32 +02:00
Jeremy Sanders
92fbe1a0e5 Use libattr and libacl to copy permissions if available 2014-07-29 02:46:07 +02:00
Eelco Dolstra
2ca39b8060 no-rpath-prebuild.sh: Don't run resulting binary
This leads to numerous build failures:

  http://hydra.nixos.org/eval/1136585

because ELF interpreter names are not unique (e.g. ld-linux.so.2 is
used on systems other than i686-linux).
2014-07-18 12:40:15 +02:00
Eelco Dolstra
b3283bd6e3 Build on Ubuntu 14.04 2014-07-18 12:27:26 +02:00
Eelco Dolstra
ec38df54a2 Update .gitignore 2014-04-24 17:02:09 +02:00
Eelco Dolstra
1090b56a0a Merge branch 'master' of github.com:vdanjean/patchelf
Conflicts:
	tests/Makefile.am
2014-04-24 16:58:45 +02:00
Eelco Dolstra
a269d13d6d Merge branch 'document-remove-needed' of github.com:fsateler/patchelf
Conflicts:
	patchelf.1
2014-04-24 16:39:51 +02:00
Eelco Dolstra
e87ee57e2d Merge branch 'manpage-typo' of github.com:fsateler/patchelf 2014-04-24 16:35:47 +02:00
Eelco Dolstra
faf194fb46 Merge branch 'master' of github.com:ext/patchelf 2014-04-24 16:33:12 +02:00
Eelco Dolstra
7b515b5596 Merge branch 'master' of github.com:rgcjonas/patchelf 2014-04-24 16:32:05 +02:00
Eelco Dolstra
f5194e51dc Merge branch 'cdugz-master' 2014-04-24 16:27:54 +02:00
Chingis Dugarzhapov
dcc678e7c5 Clear help message for --print-soname and --set-soname options
Also fixed bad SONAME positioning in help output
2014-04-19 10:52:16 +00:00
Chingis Dugarzhapov
02c185ff69 Added tests for --print-soname and --set-soname 2014-04-19 10:05:56 +00:00
Chingis Dugarzhapov
211ee2c00a Added assertion in TODO, removed some useless debug msgs... 2014-04-10 18:52:50 +02:00
Chingis Dugarzhapov
b02d21f9b3 raise error if no DT_SONAME found 2014-04-10 18:37:50 +02:00
Chingis Dugarzhapov
6f94890feb --set-soname, fixed help message 2014-04-10 14:33:09 +02:00
Chingis Dugarzhapov
218d7b48ae --set-soname with .dynstr section resize, proper debug messages 2014-04-10 14:31:44 +02:00
Chingis Dugarzhapov
0034320810 --set-soname, first working prototype 2014-04-09 12:41:38 +02:00
Chingis Dugarzhapov
119d6c4d34 Added --print-soname option, to print DT_SONAME entry of .dynamic section 2014-04-08 15:35:04 +02:00
Felipe Sateler
6b9d36bde7 Fix typo in manpage 2014-03-28 15:26:33 -03:00
Felipe Sateler
296bea20e6 Document --remove-needed in manpage 2014-03-18 15:05:09 -03:00
Eelco Dolstra
21a85cc1c6 Update version 0.8 2014-01-14 13:33:39 +01:00
Eelco Dolstra
df6243f555 In symbol tables, rewrite st_value for STT_SECTION entries 2014-01-14 13:23:07 +01:00
Eelco Dolstra
bf03aff2ea Handle invalid symbol table entries that refer to non-existent sections
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.
2014-01-14 12:05:44 +01:00
Eelco Dolstra
e6b9f431e4 Prepare 0.7 release 0.7 2014-01-07 15:54:25 +01:00
David Sveningsson
efa358ec92 Add --remove-needed to manpage. 2013-12-17 21:05:16 +01:00
David Sveningsson
ebe3087b0d support -h in addition to --help 2013-12-17 21:03:47 +01:00
Eelco Dolstra
02c4ffa555 Add an aggregate job 2013-10-24 20:11:04 +02:00
Eelco Dolstra
845860d053 Add Fedora 19 and Ubuntu 13.10 builds 2013-10-23 11:53:17 +02:00
Eelco Dolstra
eea5b990b1 Build Fedora 18 RPMs 2013-05-08 13:59:46 +02:00
Eelco Dolstra
6fb4cdb57f Build Debian 7.0 debs 2013-05-07 11:21:04 +02:00
Eelco Dolstra
a81a12121e Build Ubuntu 13.04 debs 2013-05-03 14:06:28 +02:00
Jonas Kuemmerlin
ae5c6775e4 Add ability to add and replace DT_NEEDED entries 2013-04-28 16:42:01 +02:00
Eelco Dolstra
7c8c47bf7a Don't run the tests on Darwin
It's not an ELF platform.

http://hydra.nixos.org/build/4285486
2013-03-06 17:22:52 +01:00
Eelco Dolstra
c330f99196 Don't use the "version suffix" stuff in releaseTools.sourceTarball
It's confusing.
2013-03-06 16:58:24 +01:00
Eelco Dolstra
c9e3ba482a release.nix: Use separate jobs for each platform
E.g. "build.x86_64-linux" instead of "build".  Also, by not using a
Hydra input "system" anymore, the set of platforms to build on becomes
declarative.

See https://github.com/NixOS/hydra/issues/60
2013-03-06 16:23:42 +01:00
Eelco Dolstra
21828ee8cc Remove debug statement 2013-01-16 23:50:13 +01:00
Eelco Dolstra
118897f030 Add ‘--remove-needed’ option
This allows removing the specified DT_NEEDED entries from the dynamic
section.

Closes #4.
2013-01-16 23:42:21 +01:00
Eelco Dolstra
8dba0ae9d7 Build on Ubuntu 12.10 2012-12-04 20:16:38 +01:00
Eelco Dolstra
1c057cd107 Update README 2012-08-21 15:35:41 -04:00
Eelco Dolstra
7c784881c8 Comment out overly verbose debug line 2012-08-21 15:30:22 -04:00
Eelco Dolstra
472deb3708 Rewrite the st_shndx field in symbol tables
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).
2012-08-21 15:21:39 -04:00
Eelco Dolstra
9b794ce691 Remove trailing whitespace 2012-08-21 13:40:43 -04:00
Eelco Dolstra
a1ddbd47d3 Fix configure.ac
tests/Makefile.am:20: warning: compiling 'simple.c' with per-target flags requires 'AM_PROG_CC_C_O' in 'configure.ac'

http://hydra.nixos.org/build/2796463
2012-07-17 10:45:37 -04:00
Vincent Danjean
c4220eaf0f rewrite no-rpath test
* compile locally this test in the no-rpath test
* add tests for prebuilt no-rpath binaries on various ELF platforms
  => ia64 does not work, probably a bug in patchelf. Marking it as XFAIL for now
2012-07-11 10:10:32 +02:00
Vincent Danjean
e49720cb6f Merge remote-tracking branch 'origin/master' 2012-07-11 10:10:25 +02:00
Vincent Danjean
00b2fa4f77 Rewrite tests in automake
- add options in AM_INIT_AUTOMAKE to be more strict
  and to enable more advanced features (color-tests and parallel-tests)
- rewrite tests/Makefile.am to use automake rules for building program and libraries

=> we can now do:
./bootstrap.sh && mkdir build && cd build && ../configure && make -j distcheck
2012-07-10 18:16:24 -04:00