86ed7f7f53179d7a893329e6b9851dbb75aba405 |
|
08-Oct-2015 |
Mark Wielaard <mjw@redhat.com> |
Allocate exact amount of bytes for phdrs and shdrs. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/elf-from-memory.c
|
7eff36d5daa6ebca5e6399638a7643af105ae5b0 |
|
07-Oct-2015 |
Chih-Hung Hsieh <chh@google.com> |
Do without union of variable length arrays. Prepare to compile with clang. A union like { T32 a32[n]; T64 a64[n]; } u; is expanded to size_t nbytes = n * MAX(sizeof(T32), sizeof(T64)); void *data = malloc(nbytes); T32 (*a32)[n] = data; T64 (*a64)[n] = data; Signed-off-by: Chih-Hung Hsieh <chh@google.com>
/external/elfutils/libdwfl/elf-from-memory.c
|
9202fe132caea838cc7e2c7864e0ee702e62f155 |
|
19-May-2015 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: Don't allocate all phdrs on the stack in elf_from_remote_memory. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/elf-from-memory.c
|
32b6c6aa608d64529e863684d3d7ec3f49afe7fa |
|
19-Dec-2014 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: Remove p_align sanity check from elf_from_memory. In commit f15bcd "elf_from_remote_memory should use pagesize, not p_align" we already relaxed the p_align sanity check to allow alignment of the segment against the pagesize since that is what the glibc dynamic linker actually does. But on some architectures the kernel inserts a vdso with a completely bogus p_align for some PT_LOAD segments. So just drop the whole sanity check and allow anything since we won't use p_align, but always already use pagesize anyway. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/elf-from-memory.c
|
dd64d4a9268b822b035f8c59c2b8f55a65f80819 |
|
03-Mar-2014 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: elf_from_remote_memory only trust shdrs of last file-only segment. If the last PT_LOAD segment that contains the whole shdrs also extends the segment in memory beyond the end of file the program might be reusing the memory space that we expect the shdrs to be in. Don't trust the shdrs are valid in that case. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/elf-from-memory.c
|
f15bcda4137446d4773bb54cb99cc18497e9822c |
|
03-Mar-2014 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: elf_from_remote_memory should use pagesize, not p_align. elf_from_remote_memory would use the actual p_align of the PT_LOAD segments to calculate the loadbase, end and start of a segment. But the dynamic loader aligns the segments using the pagesize and only sanity checks the p_align values. So we should do the same to get accurate segment addresses. Also fixes a small memory leak in case the ELF image appears to be bad. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/elf-from-memory.c
|
48827ec6cb2169bad15baf7702f86c4bf2847beb |
|
26-Feb-2014 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: elf-from-memory.c (elf_from_remote_memory): Check against p64 p_type. There was a type in the case of parsing ELFCLASS64 phdrs. Check against p64 p_type, not the p32 p_type which at a different location in the union. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/elf-from-memory.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/libdwfl/elf-from-memory.c
|
01fef9d502eb1e21ac7b7e8ec9451dc96c72f7ed |
|
02-Dec-2011 |
Roland McGrath <roland@hack.frob.com> |
Fix elf_from_remote_memory for ELFCLASS64 case.
/external/elfutils/libdwfl/elf-from-memory.c
|
099dd52727f2ce1a2c73cde82af8cd5e06368aec |
|
14-Aug-2007 |
Roland McGrath <roland@redhat.com> |
missed testdata files
/external/elfutils/libdwfl/elf-from-memory.c
|
6258e7486eb3eed6e50005946795c5fbf73aa106 |
|
13-Mar-2007 |
Ulrich Drepper <drepper@redhat.com> |
propagate from branch 'com.redhat.elfutils.roland.pending' (head e0c7abd450c9e49093cfae30af8a22782a74a403) to branch 'com.redhat.elfutils' (head 2c784d50eee72e33972c333138a3a28df304da63)
/external/elfutils/libdwfl/elf-from-memory.c
|
d5a7519085f35bf48c9b33b8698835b24caa2da1 |
|
15-Jun-2006 |
Ulrich Drepper <drepper@redhat.com> |
merge of b305fe132f91c44a41a877a48efc3bdfda785b73 and c4704f02db5f42d7bcdb2feafc6199d7ac132da3
/external/elfutils/libdwfl/elf-from-memory.c
|
595d0e7e9f368f04f0d9e04b902c8dc1073103e6 |
|
13-Jun-2006 |
Ulrich Drepper <drepper@redhat.com> |
(create_verneed_data): Pretty printing.
/external/elfutils/libdwfl/elf-from-memory.c
|
d8dcc9c17a866f18b342b3b0594c15d007b8b73b |
|
13-Jun-2006 |
Roland McGrath <roland@redhat.com> |
2006-06-13 Roland McGrath <roland@redhat.com> * elf-from-memory.c (elf_from_remote_memory): Fix 32/64 typo. Use __libdwfl_seterrno for elf_memory failure.
/external/elfutils/libdwfl/elf-from-memory.c
|
1e9ef50681e20ef14c2ba38aef37a71ff148be08 |
|
05-Apr-2006 |
Ulrich Drepper <drepper@redhat.com> |
Fix FSF address. No exception for libdwarf.
/external/elfutils/libdwfl/elf-from-memory.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/libdwfl/elf-from-memory.c
|
b08d5a8fb42f4586d756068065186b5af7e48dad |
|
26-Jul-2005 |
Ulrich Drepper <drepper@redhat.com> |
Adjust for monotone.
/external/elfutils/libdwfl/elf-from-memory.c
|