93d895970ddd4cd9c0392ab16bad94def1a8ff70 |
|
06-Jun-2015 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: Fix memory leak in cache_sections. commit be1778 libdwfl: Fix possible unbounded stack usage in cache_sections. introduced a memory leak. The refs pointers were copied to the sortrefs array but never freed. Only the array was freed. Also free the elements. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/derelocate.c
|
e115bda377091bc211a786cdc7474337dd5508b6 |
|
24-May-2015 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: Check mod is not NULL in check_module. check_module is called from dwfl_module_relocate_address and from dwfl_module_address_section. Both could take a NULL Dwfl_Module if an earlier error had occured. Make check_module return immediately indicating an issue in that case. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/derelocate.c
|
be17786f9df7a59df24d2c1b4b2d36614da8e241 |
|
18-May-2015 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: Fix possible unbounded stack usage in cache_sections. For modules with lots of sections cache_sections could blow up the stack theoretically. Don't use alloca, but use malloc with explicit free. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/derelocate.c
|
159ac52b061c60947a943c102298cd692223274f |
|
18-Dec-2013 |
Mark Wielaard <mjw@redhat.com> |
libdwfl: Introduce dwfl_module_getsym_info and dwfl_module_addrinfo. Some arches like ppc64 use function descriptor values instead of function addresses causing matching of names and addresses to fail when using dwfl_module_getsym or dwfl_module_addrsym. Add ebl hook to resolve any function descriptor values found in non-ET_REL modules. The new function dwfl_module_getsym_info doesn't adjust the symbol value in any way, but returns the adjusted and/or resolved address associated with the symbol separately. The new function dwfl_module_addrinfo resolves against both the address associated with the symbol (which could be the function entry address) value and the adjusted st_value. So that it is easy to resolve and match either function descriptors and/or function entry addresses. Since these new functions also return more information they replace the dwfl_module_getsym_elf and dwfl_module_addrsym_elf functions that never made it into a released elfutils version. addr2line and readelf now use the new functions when looking up functions names. addr2line will now also display the section the address was found in when given -x. Extra testcases were added for both addr2line and the dwflsyms testscase. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/derelocate.c
|
5b25782ecd5a9d60373878f887cee65d55d98e76 |
|
01-Oct-2012 |
Mark Wielaard <mjw@redhat.com> |
derelocate.c (find_section): Check next section exists before accessing it. Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/derelocate.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/derelocate.c
|
f43feb5146788052eb3f43174e0b1a6638155a0a |
|
20-Oct-2011 |
Mark Wielaard <mjw@redhat.com> |
derelocate.c (cache_sections): Intern mod->reloc_info check.
/external/elfutils/libdwfl/derelocate.c
|
33d305fc63d88ce163fd3aba41a0dd0e1a74be38 |
|
01-Dec-2010 |
Roland McGrath <roland@redhat.com> |
dwfl_module_relocations: Remove over-eager assert.
/external/elfutils/libdwfl/derelocate.c
|
1743d7f010bead5e869d097e23ce840583913381 |
|
13-Nov-2010 |
Roland McGrath <roland@redhat.com> |
libdwfl: Revamp bias bookkeeping, account correctly for prelink REL->RELA segment inflation.
/external/elfutils/libdwfl/derelocate.c
|
f189493154d0041deced00e6a99cc5426dc9d260 |
|
14-Jun-2009 |
Ulrich Drepper <drepper@redhat.com> |
Add aliases for elf_getshnum and elf_getshstrndx. Sun in their implementation messed up the semantics of these functions. To get back to source code compatibility they asked for a solution. We simply add aliases for the two affected functions, named elf_getshdrnum and elf_getshdrstrndx. The semantics remains the same. Users of the old interfaces receive a warning for now. In future we might make it impossible to link programs which request the old interfaces (binary compatibility will of course be maintained).
/external/elfutils/libdwfl/derelocate.c
|
19a8e4dbd8268b8f0add9803d80d0266eac1aaa9 |
|
22-Apr-2009 |
Roland McGrath <roland@redhat.com> |
Fix derelocate crash for non-ET_REL file with some sh_addr at 0.
/external/elfutils/libdwfl/derelocate.c
|
7d9b821db6bc494417a57321b419c6b9481a2128 |
|
19-Dec-2008 |
Roland McGrath <roland@redhat.com> |
Fix last fix: ET_DYN addresses are taken as relative to MOD->low_addr.
/external/elfutils/libdwfl/derelocate.c
|
74825c4d9d21ff8ba0828d1790879965764ddb01 |
|
16-Dec-2008 |
Roland McGrath <roland@redhat.com> |
(dwfl_module_relocate_address): Apply main.bias, not debug.bias.
/external/elfutils/libdwfl/derelocate.c
|
b4d6f0f8064f2b706ea9035ef0393d8299671390 |
|
26-Aug-2008 |
Roland McGrath <roland@redhat.com> |
Fix up bogon and missing log entries from .pmachata.threads branch.
/external/elfutils/libdwfl/derelocate.c
|
e4c22ea004c02a58f5db5eb53794275344c17958 |
|
23-Oct-2007 |
Roland McGrath <roland@redhat.com> |
2007-10-23 Roland McGrath <roland@redhat.com> * linux-kernel-modules.c (report_kernel_archive): Reorder the kernel module to appear first.
/external/elfutils/libdwfl/derelocate.c
|
b597dfad924980dede10d7c19d87900b6172e599 |
|
16-Oct-2007 |
Ulrich Drepper <drepper@redhat.com> |
merge of '92c36bfdbc6468d1711c043b530e0dfe5abb6dec' and 'c22c8c43f8f68b0bffd4d5ccdb2282c958268742'
/external/elfutils/libdwfl/derelocate.c
|
43da9895c6d828ceae65a47f2337e8ef24eb97c1 |
|
17-Apr-2007 |
Roland McGrath <roland@redhat.com> |
libdw/ 2007-04-16 Roland McGrath <roland@redhat.com> * libdw.map (ELFUTILS_0.127): Add dwfl_module_address_section. libdwfl/ 2007-04-16 Roland McGrath <roland@redhat.com> * derelocate.c (cache_sections): Apply bias to sh_addr. (compare_secrefs): Fix address comparison to avoid signed overflow. (find_section): New function, broken out of ... (dwfl_module_relocate_address): ... here, call it. (check_module): New function, broken out of ... (dwfl_module_relocate_address): ... here, call it. (dwfl_module_address_section): New function. * libdwfl.h: Declare it. tests/ 2007-04-16 Roland McGrath <roland@redhat.com> * dwfl-addr-sect.c: New file. * Makefile.am (noinst_PROGRAMS): Add it. (dwfl_addr_sect_LDADD): New variable.
/external/elfutils/libdwfl/derelocate.c
|
aa915fd3d70b4cbe4581f9ec170d986c6ba35063 |
|
05-Feb-2007 |
Ulrich Drepper <drepper@redhat.com> |
propagate from branch 'com.redhat.elfutils.roland.pending' (head c44dcfac5b545aecb173fede31f34cb003be0173) to branch 'com.redhat.elfutils' (head 4196d4e01486bdeb0c0632291881d1c6d7163fab)
/external/elfutils/libdwfl/derelocate.c
|
c373d850ec9ca342f4c71d5e287c8d8bf0723cd6 |
|
10-Oct-2006 |
Roland McGrath <roland@redhat.com> |
2006-10-09 Roland McGrath <roland@redhat.com> * ia64_symbol.c (ia64_reloc_simple_type): Treat SECREL types as simple.
/external/elfutils/libdwfl/derelocate.c
|
1e9ef50681e20ef14c2ba38aef37a71ff148be08 |
|
05-Apr-2006 |
Ulrich Drepper <drepper@redhat.com> |
Fix FSF address. No exception for libdwarf.
/external/elfutils/libdwfl/derelocate.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/derelocate.c
|
d17fac7e89666b47811581b10b5ca0d253a3a82d |
|
23-Aug-2005 |
Roland McGrath <roland@redhat.com> |
2005-08-23 Roland McGrath <roland@redhat.com> * dwarf_attr_integrate.c (dwarf_attr_integrate): Treat DW_AT_specification the same as DW_AT_abstract_origin.
/external/elfutils/libdwfl/derelocate.c
|