-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
81 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
2016-09-19 André Colomb <[email protected]> | ||
|
||
* Minor clean-ups for the build system and detection of libelf | ||
library. | ||
* Update the documentation with used build utility versions. | ||
|
||
* Release version 0.5.1 | ||
|
||
2015-09-14 André Colomb <[email protected]> | ||
|
||
* Fix possible memory access error caused by a missing check for | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ Author: André Colomb <[email protected]> | |
License | ||
------- | ||
|
||
Copyright (C) 2014, 2015 André Colomb | ||
Copyright (C) 2014, 2015, 2016 André Colomb | ||
|
||
elf-mangle is free software: you can redistribute it and/or modify it | ||
under the terms of the GNU Lesser General Public License as published | ||
|
@@ -100,13 +100,14 @@ additional developer tools installed. The following versions are | |
tested: | ||
|
||
- GNU autoconf 2.69 | ||
- GNU automake 1.14.1 | ||
- GNU libtool 2.4.2 | ||
- GNU gettext 0.19.2 | ||
- GNU automake 1.15 | ||
- GNU libtool 2.4.6 | ||
- GNU gettext 0.19.7 | ||
|
||
To fully generate the build system, run these two commands in order: | ||
To fully generate the build system, run these three commands in order: | ||
|
||
gnulib-tool --update # optional, see portability notes below | ||
git submodule update --init # embedded dependencies | ||
gnulib-tool --update # optional, see portability notes below | ||
autoreconf -i -f | ||
|
||
|
||
|
@@ -143,9 +144,8 @@ therefore a compatible version must be present. Several different | |
implementations are available, with varying licenses. | ||
|
||
Michael Riepe has written an excellent *LGPL*-licensed implementation, | ||
found at [www.mr511.de][libelf-lgpl]. This is the one *elf-mangle* is | ||
developed and tested with. It is [included][libelfg0] in most | ||
*Debian*-based Linux distributions as well as *Cygwin* and can be | ||
found at [www.mr511.de][libelf-lgpl]. It is [included][libelfg0] in | ||
most *Debian*-based Linux distributions as well as *Cygwin* and can be | ||
compiled under Win32 using *MinGW*. | ||
|
||
[libelf-lgpl]: http://www.mr511.de/software/ "libelf LGPL'ed" | ||
|
@@ -159,9 +159,11 @@ is also [packaged][elfutils-deb] in *Debian*. | |
[elfutils-deb]: https://packages.debian.org/stable/libelf-dev | ||
|
||
The [ELF Tool Chain Project][elftoolchain] includes another *libelf* | ||
implementation which is *BSD*-licensed. | ||
implementation which is *BSD*-licensed. A corresponding *Debian* | ||
[package][libelf-freebsd] is built from their sources. | ||
|
||
[elftoolchain]: http://sourceforge.net/projects/elftoolchain/ | ||
[libelf-freebsd]: https://packages.debian.org/jessie/libelf-freebsd-dev | ||
|
||
Either implementation should work if it supports the BSD *GElf* API. | ||
Just make sure the compiler finds the required headers and library. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2014 Andre Colomb | ||
# Copyright (C) 2014, 2016 Andre Colomb | ||
# | ||
# This file is part of elf-mangle. | ||
# | ||
|
@@ -17,7 +17,7 @@ | |
# <http://www.gnu.org/licenses/>. | ||
|
||
|
||
AC_INIT([elf-mangle], [0.5], [[email protected]]) | ||
AC_INIT([elf-mangle], [0.5.1], [[email protected]]) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
AC_CONFIG_SRCDIR([src/elf-mangle.c]) | ||
AC_CONFIG_AUX_DIR([.]) | ||
|
@@ -39,16 +39,21 @@ AM_CONDITIONAL([USE_GNULIB], [test "x$gnulib" = x1]) | |
|
||
# Checks for libraries. | ||
m4_ifdef([gl_INIT], [gl_INIT]) | ||
AC_CHECK_LIB([elf], [elf_version], | ||
[AC_SUBST([LIBS_ELF], [-lelf])], | ||
[AC_MSG_ERROR([Libelf is needed to compile this software. | ||
Specify LDFLAGS if necessary.])]) | ||
AC_SEARCH_LIBS([elf_version], [elf], [], | ||
[AC_MSG_ERROR([Libelf is needed to compile this software, | ||
but no library could be found. | ||
Specify LDFLAGS and / or LIBS if necessary. | ||
Hint: `pkg-config --libs libelf` | ||
may be of help if installed.])]) | ||
AC_CHECK_HEADERS([gelf.h], [], | ||
[AC_MSG_ERROR([Libelf is needed to compile this software. | ||
Specify CPPFLAGS if necessary.])]) | ||
[AC_MSG_ERROR([Libelf is needed to compile this software, | ||
but no working headers could be found. | ||
Specify CPPFLAGS if necessary. | ||
Hint: `pkg-config --cflags libelf` | ||
may be of help if installed.])]) | ||
AM_GNU_GETTEXT([external]) | ||
AM_GNU_GETTEXT_NEED([need-formatstring-macros]) | ||
AM_GNU_GETTEXT_VERSION([0.18.3]) | ||
AM_GNU_GETTEXT_VERSION([0.19.7]) | ||
|
||
# Use installed libcintelhex or fall back to embedded copy | ||
cintelhex=0 | ||
|
@@ -87,13 +92,14 @@ AC_ARG_WITH([cintelhex], | |
AS_IF([test "x$cintelhex_internal" = x1], | ||
[AC_MSG_NOTICE([Trying embedded internal copy of libcintelhex]) | ||
AS_UNSET([ac_cv_header_cintelhex_h]) | ||
saved_CPPFLAGS="$CPPFLAGS" | ||
CPPFLAGS="-I${srcdir}/libcintelhex/include $CPPFLAGS" | ||
AC_CHECK_HEADERS([cintelhex.h], | ||
[cintelhex=1], | ||
[cintelhex_internal=0]) | ||
CPPFLAGS="$saved_CPPFLAGS" | ||
], | ||
[AS_IF([test x$cintelhex = x1], AC_SUBST([LIBS_CINTELHEX], [-lcintelhex]))]) | ||
[AS_IF([test x$cintelhex = x1], AC_SUBST([CINTELHEX_LIBS], [-lcintelhex]))]) | ||
AM_CONDITIONAL([HAVE_INTELHEX], [test x$cintelhex = x1]) | ||
AM_CONDITIONAL([HAVE_INTELHEX_INTERNAL], [test x$cintelhex_internal = x1]) | ||
AC_DEFINE_UNQUOTED([HAVE_INTELHEX], [$cintelhex], [Define if you have libcintelhex]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,3 +85,4 @@ | |
/wchar.in.h | ||
/xsize.c | ||
/xsize.h | ||
/limits.in.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,4 @@ | |
/wchar_t.m4 | ||
/wint_t.m4 | ||
/xsize.m4 | ||
/limits-h.m4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.