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
Eelco Dolstra
4bb6695abe
* Remove macros defined in elf.h.
2009-10-14 13:35:52 +00:00
Eelco Dolstra
c46c0ef3e5
* Include a copy of Glibc's elf.h so that we're not dependant on the
...
(lack of) elf.h on various platforms.
2009-10-14 13:34:14 +00:00
Eelco Dolstra
871da3f4e1
2009-09-24 07:40:49 +00:00
Eelco Dolstra
6f83758dd9
2009-09-23 20:46:30 +00:00
Eelco Dolstra
a2370fb3e7
2009-09-23 20:29:30 +00:00
Eelco Dolstra
fc79f8a85a
* Use the e_type field instead of trying to guess whether we’re
...
dealing with an executable or dynamic library. Fixes NIXPKGS-98.
2009-06-16 15:34:12 +00:00
Eelco Dolstra
ecb2b0c96f
* Regression test for NIXPKGS-98: patchelf barfs on dynamic libraries
...
that contain an .interp section.
2009-06-16 15:26:30 +00:00
Eelco Dolstra
ae660b94d8
* When using --force-rpath and the executable already has a
...
DT_RUNPATH, get rid of it. Sometimes you really want a DT_RPATH
rather than a DT_RUNPATH, since the former is global (affects
the search path of dependencies as well) while the latter is local.
2009-05-07 15:05:34 +00:00
Eelco Dolstra
fe0f879309
2009-04-15 18:06:02 +00:00
Eelco Dolstra
b0c602bf10
* Build on Ubuntu 9.04.
2009-04-14 15:21:09 +00:00
Eelco Dolstra
15ff59ba85
* The workaround is no longer needed.
2009-04-14 14:58:15 +00:00
Eelco Dolstra
09fb154860
2009-03-09 14:02:51 +00:00