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
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
Vincent Danjean
90e33b9a72
Add a .gitignore for all file generated by ./bootstrap.sh
...
No need to exclude files created when compiling and testing
as this can be done out of tree
2012-07-10 18:16:24 -04:00
Vincent Danjean
c364c397be
Cleanup configure.ac
...
- quote argument (mostly cosmetic)
- use a file present only once in the sources for AC_CONFIG_SRCDIR
- use AC_CONFIG_AUX_DIR to put all auxilary scripts in a subdirectory
2012-07-10 18:16:24 -04:00
Vincent Danjean
3226dea361
Allow parallel execution of tests
...
Each test use its own subdirectory in scratch/
2012-07-10 18:16:24 -04:00
Vincent Danjean
d0dac944ae
Use autoreconf to bootstrap the project
...
This avoid to manually list all autotool programs required
2012-07-10 18:16:24 -04:00
Vincent Danjean
4f66601450
fix build *and check* out of tree
...
- use Makefile variables $< (and $@) so that sources are found correctly
- use ${srcdir} in test scripts to find the sources
This allows "make distcheck" to successfully pass
2012-07-10 18:16:24 -04:00
Vincent Danjean
f12f3c9691
Use automake support to install docs
...
It is shorter, cleaner and "make uninstall" support comes for free
2012-07-10 18:16:24 -04:00
Eelco Dolstra
e841d5f8ec
Build Ubuntu 12.04 packages
2012-05-10 22:06:48 -04:00
Eelco Dolstra
67c5d696b2
Disable tests on Solaris
...
The Solaris linker doesn't have the --enable/disable-dtags flag in the
linker required by the tests.
http://hydra.nixos.org/build/2230397
2012-03-12 10:29:37 +01:00
Eelco Dolstra
b0e6fb12e2
Support building out of tree
...
Contributed by Yann E. MORIN.
2012-02-21 00:07:44 +01:00
Eelco Dolstra
106e21cbe7
Build PatchELF for Ubuntu 11.10 and Fedora 16
2012-02-07 14:18:25 +01:00
Eelco Dolstra
326f168c02
Use underscores in versions to keep RPM happy
...
RPM doesn't allow dashes in version numbers, so use an underscore
instead. Also, let Autoconf generate the RPM spec file.
2011-12-14 16:35:50 +01:00
Eelco Dolstra
b575e2a34d
Use Hydra's shortRev attribute
2011-12-06 23:15:57 +01:00
Eelco Dolstra
267480b66c
Gitify the pre-release version number
2011-12-06 22:44:00 +01:00
Eelco Dolstra
61d327c714
Bump the version number
2011-12-06 22:35:54 +01:00
Eelco Dolstra
d8e97794f6
* Use <...> syntax.
2011-12-05 11:28:55 +00:00
Eelco Dolstra
ea21044d47
* Update the README for PatchELF 0.6.
0.6
2011-11-07 19:48:34 +00:00
Eelco Dolstra
a9aa808a5c
* Support executables created by the Gold linker (NixOS/140). These
...
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.
2011-09-11 20:10:14 +00:00
Eelco Dolstra
92d4c4f531
* Build on Debian 6.0 and Ubuntu 10.10.
2011-02-14 16:52:45 +00:00
Eelco Dolstra
87f4d86122
* Fix patching a little-endian binary on a big-endian machine. This
...
fixes the no-rpath test on powerpc-linux.
2010-08-26 12:42:30 +00:00
Eelco Dolstra
2b52ef1cdc
* Test whether the patched no-rpath executable works on i686-linux.
2010-08-26 11:36:31 +00:00
Eelco Dolstra
f78ceb5677
* Update DT_RELA.
2010-08-26 08:55:28 +00:00
Lluís Batlle i Rossell
396955bb71
I forgot in the last commit (enabling patchelf on the fuloong2f) to change some
...
4096 to the pageSize decided at the top of the module.
2010-07-29 18:47:24 +00:00
Lluís Batlle i Rossell
c050b32d98
Making patchelf work on a MIPS machine with 16KB page size (it's set in its kernel defconfig),
...
the Lemote Fuloong 2F.
2010-07-29 18:44:55 +00:00
Eelco Dolstra
04f8530ae3
* Build PatchELF on Fedora 13 and Ubuntu 10.04.
2010-06-15 11:57:22 +00:00
Eelco Dolstra
86d142dfa0
* Added a manual page contributed by Jeremy Sanders
...
<jeremy@jeremysanders.net >.
2010-06-10 08:55:30 +00:00
Eelco Dolstra
deb109a105
* Segments can have a zero alignment, causing a divide-by-zero error.
...
Ignore those. (Contributed by Zack Weinberg.)
2010-04-06 09:11:42 +00:00
Eelco Dolstra
75fb50d6d6
* Doh.
2010-03-05 17:36:31 +00:00
Eelco Dolstra
ab8467d7e0
* Simplify the PatchELF release expression: the `build', RPM and
...
Debian jobs now depend directly on the `tarball' job (i.e. as a Nix
dependency, rather than indirectly through a Hydra jobset input).
This ensures consistency.
2010-03-05 17:29:59 +00:00
Eelco Dolstra
7742fd291b
* Build PatchELF on Fedora 12.
2009-12-09 22:35:59 +00:00
Eelco Dolstra
fc9e0f39ad
2009-11-05 14:51:36 +00:00
Eelco Dolstra
e50afeac45
* Bump the version number.
2009-11-04 17:04:28 +00:00
Eelco Dolstra
e7c30c7ce9
* Don't bother doing a "make check" on Darwin or Cygwin since it won't
...
work (they're not ELF platforms).
2009-11-04 15:52:07 +00:00
Eelco Dolstra
c494e83eba
* 0.5 notes.
2009-11-04 15:43:33 +00:00
Eelco Dolstra
3955ec926c
* On FreeBSD, running a program by calling the ELF interpreter
...
directly (e.g. “/libexec/ld-elf.so.1 /bin/ls”) hangs, and on OpenBSD
the interpreter is not executable. Let’s assume that it only works
on Linux.
2009-11-04 15:26:57 +00:00
Eelco Dolstra
68d165cd4f
* Release only one README.
2009-10-26 13:24:13 +00:00
Eelco Dolstra
d2824f4133
* Typo.
2009-10-21 13:35:52 +00:00
Eelco Dolstra
e75749b84f
* Updated the license to GPLv3.
2009-10-14 13:43:12 +00:00