History log of /external/elfutils/src/findtextrel.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3425454a10d307fae891fb667cf7969e945cde79 09-Oct-2015 Josh Stone <jistone@redhat.com> Trust AC_SYS_LARGEFILE to provide large file support

AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS in config.h if needed for
LFS, and this automatically maps things like open to open64. But quite
a few places used explicit 64-bit names, which won't work on platforms
like FreeBSD where off_t is always 64-bit and there are no foo64 names.
It's better to just trust that AC_SYS_LARGEFILE is doing it correctly.

But we can verify this too, as some file could easily forget to include
config.h. The new tests/run-lfs-symbols.sh checks all build targets
against lfs-symbols (taken from lintian) to make sure everything was
implicitly mapped to 64-bit variants when _FILE_OFFSET_BITS is set.

Signed-off-by: Josh Stone <jistone@redhat.com>
/external/elfutils/src/findtextrel.c
2ec957327cdfae6cee592a52958a9c937ea4b13c 04-Sep-2015 Chih-Hung Hsieh <chh@google.com> Replace printf %Z length modifier with %z.

%Z is a GNU extension predating the ISO C99 %z modifier supported by
libc5 and no longer recommended.

Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/findtextrel.c
a1f359ed0d456fc85f14d54e87a21ac9c0c4e553 18-Jun-2015 Mark Wielaard <mjw@redhat.com> findtextrel: Don't leak memory in process_file.

When a files do contain textrels we fail to release the segments searched
and valgrind will show:

2,560 bytes in 16 blocks are definitely lost in loss record 1 of 1
at 0x40281B5: malloc (in vgpreload_memcheck-x86-linux.so)
by 0x804AE63: process_file (findtextrel.c:322)
by 0x804909B: main (findtextrel.c:149)

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/findtextrel.c
712c8faddc08844fb1f2814c8b6e817f03b0698e 22-Nov-2014 Mark Wielaard <mjw@redhat.com> Use elf_getphdrnum instead of accessing ehdr->e_phnum directly.

Using elf_getphdrnum lets us handle ELF files that use more than PN_XNUM
phdrs. And guards against some corrupt files.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/findtextrel.c
a58951b183fb3e051870b19c95d8082a3efa3ddb 01-Mar-2013 Mark Wielaard <mjw@redhat.com> Fix two memory leaks in findtextrel and strip.

The findtextrel leak is real, when processing lots of files without text
relocations the files and memory wouldn't be released. The strip leak is
minor since it can only happen when using -f which only allows one file
as argument. But it is nice to see valgrind say:

"All heap blocks were freed -- no leaks are possible".

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/findtextrel.c
de2ed97f33139af5c7a0811e4ec66fc896a13cf2 05-Jun-2012 Mark Wielaard <mjw@redhat.com> Update name, license and contributor policy.

* Change name from "Red Hat elfutils" to "elfutils".
* Update license of standalone tools and test from GPLv2 to GPLv3+.
* Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+.
* Add Developer Certificate of Origin based contributor policy.

top-level:

- COPYING: Upgraded from GPLv2 to GPLv3.
- CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files.
- NEWS: Added note about new contribution and license policy.
- Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST.
- configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'.

backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf:

- All files updated to GPLv2/LGPLv3+. Except some very small files
(<5 lines) which didn't have any headers at all before, the linker
.maps files and the libcpu/defs files which only contain data and
libelf/elf.h which comes from glibc and is under LGPLv2+.

config:

- elfutils.spec.in: Add new License: headers and new %doc files.
- Update all license headers to GPLv2/LGPLv3+ for files used by libs.

src, tests:

- All files updated to GPLv3+. Except for the test bz2 data files, the
linker maps and script files and some very small files (<5 lines)
that don't have any headers.

Signed-off-by: Richard Fontana <rfontana@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/src/findtextrel.c
3a64a3087f53ab860c7de04da0e53dabef459520 22-Jan-2012 Ulrich Drepper <drepper@gmail.com> Update copyright year
/external/elfutils/src/findtextrel.c
58af2001b92a8a8ee21a81b2845449ae8d038b7c 11-Nov-2010 Roland McGrath <roland@redhat.com> findtextrel: Optimize last change.
/external/elfutils/src/findtextrel.c
77221de070e8978c312d3e6b2c66a28dca4c37bc 11-Nov-2010 Roland McGrath <roland@redhat.com> findtextrel: Don't assume order of sections.
/external/elfutils/src/findtextrel.c
fdc93e12a77866cafd1aae4463d89cef2c01d9b1 17-Jan-2009 Ulrich Drepper <drepper@myware66.akkadia.org> Move argp_program_version_hook and argp_program_bug_address variables
in all programs into the .rodata section.
/external/elfutils/src/findtextrel.c
44173edad1dfd24c4d98fcf032308f7df28db652 02-Jan-2009 Ulrich Drepper <drepper@redhat.com> Unpdate copyright in messages.
/external/elfutils/src/findtextrel.c
3cbdd387c752999255aea91600b5cfdefbeac7d0 02-Jan-2008 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.disasm' (head d15b4eb794e81e477f9896fe82a74cb5ecf4514c)
to branch 'com.redhat.elfutils' (head eaacbf01f8cc89d043ec6eca9b5e35cb5c4cde06)
/external/elfutils/src/findtextrel.c
ad024afc93dcd0f4797b3e80bfb6b80c34da5c12 02-Jan-2008 Ulrich Drepper <drepper@redhat.com> Update copyright year.
/external/elfutils/src/findtextrel.c
b0243863149acde9e42b25688c7c2959830e69a9 06-Jun-2007 Ulrich Drepper <drepper@redhat.com> Prepare for 0.128 release.

Minor fixes.

Update gettext files to 0.16.1.
/external/elfutils/src/findtextrel.c
b770cf9d1045bde04a1d89c63f4d7eb261ff78da 10-Jan-2007 Ulrich Drepper <drepper@redhat.com> Update copyright year.
/external/elfutils/src/findtextrel.c
1e9ef50681e20ef14c2ba38aef37a71ff148be08 05-Apr-2006 Ulrich Drepper <drepper@redhat.com> Fix FSF address. No exception for libdwarf.
/external/elfutils/src/findtextrel.c
82c345d92531e2577f16928efe62c14d19d5fc47 05-Apr-2006 Ulrich Drepper <drepper@redhat.com> Prepare for 0.120 release.
/external/elfutils/src/findtextrel.c
361df7da6dfecd817b27e62b91752ac316d7cdd4 04-Apr-2006 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head 4f8fc821345feef58624f0aa5b470d4827577d8c)
to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
/external/elfutils/src/findtextrel.c
b08d5a8fb42f4586d756068065186b5af7e48dad 26-Jul-2005 Ulrich Drepper <drepper@redhat.com> Adjust for monotone.
/external/elfutils/src/findtextrel.c