History log of /external/elfutils/libdwfl/linux-kernel-modules.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3ad5c39aed9ad8b3847015a8349053b7a1ac094f 25-Jan-2016 Chih-Hung Hsieh <chh@google.com> Merge upstream 0.165 SHA '203f0a3'

* git merge 203f0a3
* See all upstream changes since the previous merge
in branch aosp/upstream-master:
git diff 9d1e236..203f0a3
* Android relevant upstream changes:
* Version number changed from 0.164 to 0.165
* libelf now depends on zlib
* Changed version number in generated files:
version.h, config.h
* No change to generated files:
libdw/known-dwarf.h
* Updated libelf/Android.mk:
* added new source files:
gelf_getchdr.c elf{32,64}_getchdr.c elf_compress.c
* added LOCAL_STATIC_LIBRARIES := libz

Change-Id: Ieb306d84ffcaf680ad6e74da28fcc8efbf00592a
dd131168e2abf2f0fc872829e1101366395cc390 08-Jan-2016 Mark Wielaard <mjw@redhat.com> Simplify code and build now that zlib support is no longer optional.

Now that we always require zlib support we don't need to conditionally
build or compile code that depends on it.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
dc6526a51317dbaf812df26108da614703050770 19-Oct-2015 Chih-Hung Hsieh <chh@google.com> Merge upstream 'a1e17a2', version 0.164.

* git merge a1e17a2
* Android relevant upstream changes:
version number changed to 0.164
handle ELF with merged strtab/shstrtab
handle missing SHF_INFO_LINK section flags
open64 -> open
loff_t -> int64_t
conditionally include <config.h>
See all upstream changes since the previous merge:
git diff 86ed7f7..a1e17a2
* Manual changes (of generated files) after git merge:
* version.h: new version number 164.
* config.h: new version number 0.164, still keep Android #if __LP64__
* libdw/known-dwarf.h: no change

Change-Id: Ieb1bfed35e76ee3a641499897863679e6d4da096
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/libdwfl/linux-kernel-modules.c
15edce876ace54b89eebd323d89643e7712e717a 06-Oct-2015 Chih-Hung Hsieh <chh@google.com> Merge latest upstream commit 2284375.

* Four libdwfl nested functions were converted to standard C syntax,
to compile with clang/llvm.
* Other upstream changes since SHA d8698e5, see git log for details:
sparc relocation types, update sh_info in unstrip,
strtab/shstrtab string tables in strip and unstrip,
update e_version and e_shentsize in elf_update,
Ukrainian translation.

Change-Id: Ib5871cd3873a8fdf88683c30d95effc7fdc338f5
a3a76e361527b057fc4cf8a8a8ce97a33dd59198 18-Sep-2015 Chih-Hung Hsieh <chh@google.com> Move 4 libdwfl nested functions.

Now they should compile with clang.

Used local variables are passed to new file scope functions
as constant parameters, or pointers, or embedded in a
'state' structure.

One simple function "report" is changed to a macro.
It triggers a gcc false positive -Werror=maybe-uninitialized,
so the local variables are explicitly initialized.

Signed-off-by: Chih-Hung Hsieh <chh@google.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
922b9334d3b16aba95c5f31c7d63d00498595f1c 29-Sep-2015 Chih-Hung Hsieh <chh@google.com> Update comment.

Change-Id: Ia02498964c68d22253bc8f08490b29bb769afeb7
/external/elfutils/libdwfl/linux-kernel-modules.c
b67d33c44ca7c0d8709b9d729fb238f51008c50c 29-Sep-2015 Chih-Hung Hsieh <chh@google.com> Merge in latest aosp/upstream-master d8698e55.

git merge d8698e55cbe95e56c3a4cbd67c320048ea4f087a
Include upstream changes up to Wed Sep 23 20:44:06 2015.

Update generated files:
./config.h
./libdw/known-dwarf.h
./version.h

Change-Id: Ica2510edda846659a0c89703aeafe85bd62abab8
5eafdf0f9bfd9a3c5f93414ac16bb399b6da0b7f 25-Sep-2015 Chih-Hung Hsieh <chh@google.com> Move files up to match upstream source structure.

To create an upstream-master branch later and keep track
of upstream changes.
* src/Android.mk file is deleted because ./Android.mk
is identical and serves the same purpose.
* ./Makefile.am is moved from old src/Makefile.am,
and new src/Makefile.am is from old src/src/Makefile.am.
Similarly, ./ChangeLog is moved from old src/ChangeLog,
and new src/ChangeLog is from old src/src/ChangeLog.
* Remove unnecessary files that were generated by
autoconf or configure.

Change-Id: Iafc67d1e80f9d7ad2a74bc851bf9ca9e87205336
/external/elfutils/libdwfl/linux-kernel-modules.c
08e5ae6fc821553d1b81d7e7bc41bfd6f0071967 19-May-2015 Mark Wielaard <mjw@redhat.com> libdwfl: Don't stack allocate alternate_name in dwfl_linux_kernel_find_elf.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
251f1459aa54c55e2fe51f5499709253984b99a5 19-May-2015 Mark Wielaard <mjw@redhat.com> libdwfl: Minimize stack usage in dwfl_linux_kernel_report_offline.

Don't stack allocate module name. Also fixes a latent bug (if the module
file didn't have a suffix - which is very unlikely) and an inefficiency.
We only need to substitue chars up to the suffix.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
9d29ed2989b6691457bbd602de740c4423ac8781 14-Aug-2014 Mark Wielaard <mjw@redhat.com> libdwfl: Handle LZMA .ko.xz compressed kernel modules.

Linux kernel modules can not just be compressed with gz and bz2, but also
with xz.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
df85bf99021119fcbb2ced66dd69f1cceafb180c 01-May-2014 Mark Wielaard <mjw@redhat.com> libdwfl: Move dwz alt multi file searching to find_debuginfo callback.

Don't hard code the Dwarf dwz alt multi file search but allow the user
to override it through the standard Dwfl_Callbacks. Also move ownership
completely to the user of dwarf_setalt by removing free_alt from Dwarf
and adding alt, fd and elf fields to Dwfl_Module. Add a relative .dwz
file test case.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
641a4f62f1f1940540f1202c1e1aa5ce8c508234 21-Dec-2013 Mark Wielaard <mjw@redhat.com> libdwfl: Correct nested asprintf result check in report_kernel_archive.

Because of wrongly placed parens the result of only one asprintf call
was checked correctly. Causing dwfl_linux_kernel_report_offline to return
ENOMEM. Rewrite nested if unlikely check into separate if statements to
make clear what is actually being checked and what the actual unlikely
condition is.

Reported against systemtap "build-id difficulties with hand-built kernels"
https://sourceware.org/bugzilla/show_bug.cgi?id=16358

Reported-by: Crestez Dan Leonard <lcrestez@ixiacom.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
8701663f8720eaae76448f5d61890e142a67eba1 21-Nov-2013 Ben Cheng <bccheng@google.com> Switch to elfutils 0.153.

Change-Id: I2452503997af46a55bc898ef0cfda4b658da9130
/external/elfutils/libdwfl/linux-kernel-modules.c
16fa414aff02365534b7bbeab281c731b9c4497d 22-Aug-2013 Mark Wielaard <mjw@redhat.com> libdwfl/linux-kernel-modules.c (report_kernel): Pass add_p_vaddr as true.

On some architectures (e.g. x86_64) the vmlinux is ET_EXEC, while on
others (e.g. ppc64) it is ET_DYN. In both cases the phdr p_vaddr will
be non-zero. We want the image to be placed as if it was ET_DYN, so
pass true for add_p_vaddr which will do the right thing (in combination
with a zero base) in either case.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
904aec2c2f62b729a536c2259274fdd440b0d923 30-Apr-2013 Jan Kratochvil <jan.kratochvil@redhat.com> Add parameter add_p_vaddr to dwfl_report_elf.

libdwfl/
* dwfl_report_elf.c (__libdwfl_report_elf): Add parameter add_p_vaddr.
Set it to true for ET_EXEC and ET_CORE. Provide alternative
setup of START and BIAS if !ADD_P_VADDR. Set END from BIAS, not BASE.
(dwfl_report_elf): Add parameter add_p_vaddr. Pass it down. Add
NEW_VERSION.
(_compat_without_add_p_vaddr_dwfl_report_elf) <SHARED>: New, with
COMPAT_VERSION.
* libdwfl.h (dwfl_report_elf): Add parameter add_p_vaddr. Describe it.
* libdwflP.h (__libdwfl_report_elf): Add parameter add_p_vaddr.
* link_map.c (report_r_debug): Use true add_p_vaddr for dwfl_report_elf.
* linux-kernel-modules.c (report_kernel): Use false add_p_vaddr for
dwfl_report_elf.
* offline.c (process_elf): Use true add_p_vaddr for dwfl_report_elf.

tests/
* dwfl-report-elf-align.c: Use false add_p_vaddr for dwfl_report_elf.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.c
76c54597cad951a8027d8b1a5f19eb557c22ebcb 11-Dec-2012 Mark Wielaard <mjw@redhat.com> Fix two failure condition checks in libdwfl/linux-kernel-modules.c.

In report_kernel () if find_kernel_elf () fails then fname hasn't been
allocated or already freed. Don't free it again.

Brackets around unlikely expression in report_kernel_archive were incorrect
making the check always succeed.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libdwfl/linux-kernel-modules.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/linux-kernel-modules.c
cc6695e2684ce93cdf8bd2da63d55d2cf49ff076 08-Mar-2012 Ben Cheng <bccheng@google.com> Upgrade elfutils from version 0.97 to 0.138

This upgrade is in preparation for adding perf to the Android tree, where
perf needs newer version of elfutils.

This particular snapshot also cleans up the current makefile where only
the host version of libelf.a (needed by elftree). Additional build
targets for libebl.a, libebl_arm.a, and libebl_sh.a are eliminated since
they are not used in the tree at all.

Changes that build other target modules and associated modifications to
work with bionic will be added later.

Change-Id: Ifa808ba5ad2881ccb2c0cf44d134931faad801e1
/external/elfutils/libdwfl/linux-kernel-modules.c
dbb490fad0fb4924e7cd0ae3991dec1cda0de644 11-Apr-2011 Mark Wielaard <mjw@redhat.com> Fix libdwfl compile issue in case none of the compression libraries are there.

* linux-kernel-modules.c (vmlinux_suffixes): Guard definition
by check for zlib, bzlib or lzma defines to check it isn't empty.
(try_kernel_name): Use same guard for use of vmlinux_suffixes.
/external/elfutils/libdwfl/linux-kernel-modules.c
6ecdead8c0fbba51e8b2561e4d54dd7be3f69204 11-Feb-2011 Roland McGrath <roland@redhat.com> libdwfl: Search for Linux kernel binaries with compression file name suffixes.
/external/elfutils/libdwfl/linux-kernel-modules.c
81cfccae4f4298f812eae4eb3dc859220ca8a21e 30-Jun-2010 Roland McGrath <roland@redhat.com> libdwfl: Fix Linux kernel module search when dwfl_build_id_find_elf closes fd on success.
/external/elfutils/libdwfl/linux-kernel-modules.c
be9c4d7683a759ac13162c11af3e04907dccd922 20-May-2010 Roland McGrath <roland@redhat.com> Fix /proc/kallsyms grovelling.
/external/elfutils/libdwfl/linux-kernel-modules.c
a4b1a95434b90ed147e33363d92e24a035b6b775 09-Jan-2009 Roland McGrath <roland@redhat.com> Make -k/-K prune "source" subdirectory.
/external/elfutils/libdwfl/linux-kernel-modules.c
705364b2bfc805e0c07ea64ec01e3080e5609bc3 06-Jan-2009 Roland McGrath <roland@redhat.com> Fix nits in .ko.{gz,bz2} matching.
/external/elfutils/libdwfl/linux-kernel-modules.c
60205c962289f2e3a1545f18711f2ae4ea53ab96 06-Jan-2009 Roland McGrath <roland@redhat.com> libdwfl -k/-K match compressed .ko files
/external/elfutils/libdwfl/linux-kernel-modules.c
1d8bb25cac06b5af57f8733e5ea7a068a79edfe0 07-Aug-2008 Roland McGrath <roland@redhat.com> src/
(find_symbol): Likewise.
Convert plain number, or handle strings like "(section)+offset"
or "symbol+offset".
/external/elfutils/libdwfl/linux-kernel-modules.c
0fa20e84d7ac183bd3e270d825a557d879921b9c 07-May-2008 Roland McGrath <roland@redhat.com> libdwfl/
2008-05-06 Roland McGrath <roland@frob.com>

* linux-kernel-modules.c (dwfl_linux_kernel_report_offline): Use
FTS_LOGICAL here too.
(dwfl_linux_kernel_find_elf): Likewise.
/external/elfutils/libdwfl/linux-kernel-modules.c
9897d66b4ec33c24719d0974b17db6fe9ea16c8e 29-Apr-2008 Roland McGrath <roland@redhat.com> propagate from branch 'com.redhat.elfutils' (head bef2134618ae8468c403066e350769ec46e303b7)
to branch 'com.redhat.elfutils.roland.pending' (head 0a8081a6b3306c7fc090f01691f4c561b841d4f0)
/external/elfutils/libdwfl/linux-kernel-modules.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/linux-kernel-modules.c
b597dfad924980dede10d7c19d87900b6172e599 16-Oct-2007 Ulrich Drepper <drepper@redhat.com> merge of '92c36bfdbc6468d1711c043b530e0dfe5abb6dec'
and 'c22c8c43f8f68b0bffd4d5ccdb2282c958268742'
/external/elfutils/libdwfl/linux-kernel-modules.c
3fc3d7bd6bd8485404a936f7354e781dc2be6a5a 04-Oct-2007 Ulrich Drepper <drepper@redhat.com> Build fixes for uninitialized variables.
Add some branch prediction.
/external/elfutils/libdwfl/linux-kernel-modules.c
59ea7f33f781e6e3f8c9d81d457e5d99eee8f1ce 04-Oct-2007 Roland McGrath <roland@redhat.com> src/
2007-10-04 Roland McGrath <roland@redhat.com>

* readelf.c (print_archive_index): New variable.
(options, parse_opt): Accept -c/--archive-index to set it.
(dump_archive_index): New function.
(process_file): Take new arg WILL_PRINT_ARCHIVE_INDEX.
Call dump_archive_index on archives if set.
(main): Update caller.
(any_control_option): Give it file scope, moved out of ...
(parse_opt): ... here.

tests/
2007-10-04 Roland McGrath <roland@redhat.com>

* run-readelf-test4.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add it.
/external/elfutils/libdwfl/linux-kernel-modules.c
099dd52727f2ce1a2c73cde82af8cd5e06368aec 14-Aug-2007 Roland McGrath <roland@redhat.com> missed testdata files
/external/elfutils/libdwfl/linux-kernel-modules.c
9aa8ef7fbb5ada14b7c4585d6c1361aa5eab6f88 18-May-2007 Roland McGrath <roland@redhat.com> src/
2007-05-18 Roland McGrath <roland@redhat.com>

* unstrip.c (copy_elided_sections): Match up non-NOBITS sections with
stripped file, so as not to duplicate a section copied in both.

* strip.c (handle_elf): Keep SHT_NOTE section copies in the debug file.

tests/
2007-05-18 Roland McGrath <roland@redhat.com>

* run-strip-test4.sh (stripped, debugfile): Use new reference files.
* testfile37.bz2: New data file.
* testfile37.debug.bz2: New data file.
* run-unstrip-test2.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add them.
/external/elfutils/libdwfl/linux-kernel-modules.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/linux-kernel-modules.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/linux-kernel-modules.c
44865b9e1e73f6c0e35c7d62a72cc73b513f65f0 11-Jan-2007 Roland McGrath <roland@redhat.com> 2007-01-10 Roland McGrath <roland@redhat.com>

* linux-kernel-modules.c (report_kernel): Check asprintf return value
directly instead of via side effect, to silence warn_unused_result.
(dwfl_linux_kernel_report_offline): Likewise.
(dwfl_linux_kernel_find_elf): Likewise.
(dwfl_linux_kernel_module_section_address): Likewise.
* find-debuginfo.c (try_open): Likewise.
/external/elfutils/libdwfl/linux-kernel-modules.c
a1cee0760dceaeca52aff9498b144978537d5a16 15-Aug-2006 Roland McGrath <roland@redhat.com> libdwfl/
2006-08-14 Roland McGrath <roland@redhat.com>

* linux-kernel-modules.c (try_kernel_name): If the call to
dwfl_standard_find_debuginfo produces no results, try it again
with NULL as DEBUGLINK_FILE to try *FNAME with .debug suffix.

* find-debuginfo.c (DEFAULT_DEBUGINFO_PATH): Macro moved ...
* libdwflP.h: ... to here.
* linux-kernel-modules.c (try_kernel_name): Skip manual open if it
repeats the first thing dwfl_standard_find_debuginfo will try.

* linux-kernel-modules.c (MODULE_SECT_NAME_LEN): New macro.
(dwfl_linux_kernel_module_section_address): If a /sys file is missing
and the section name is >= MODULE_SECT_NAME_LEN, try truncating the
section name.
/external/elfutils/libdwfl/linux-kernel-modules.c
1e9ef50681e20ef14c2ba38aef37a71ff148be08 05-Apr-2006 Ulrich Drepper <drepper@redhat.com> Fix FSF address. No exception for libdwarf.
/external/elfutils/libdwfl/linux-kernel-modules.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/linux-kernel-modules.c
2e53b9950e52c08cc61c30755e58523860619b8a 22-Nov-2005 Roland McGrath <roland@redhat.com> 2005-11-21 Roland McGrath <roland@redhat.com>

* linux-kernel-modules.c (dwfl_linux_kernel_module_section_address):
Don't leak malloc'd file name.
If a /sys/.../sections file is missing and starts with ".init",
try the variant with "_init" too; catches PPC64 kernel braindamage.
/external/elfutils/libdwfl/linux-kernel-modules.c
07d4f2fc1cb53f170a71bc13617bbdd9cb1c3c60 28-Oct-2005 Roland McGrath <roland@redhat.com> libdw/
Fixes to last changes.

tests/
2005-10-27 Roland McGrath <roland@redhat.com>

* run-find-prologues.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add it.
/external/elfutils/libdwfl/linux-kernel-modules.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/linux-kernel-modules.c
5678f87b4ad2557c653e3780221b539379311308 07-Aug-2005 Roland McGrath <roland@redhat.com> 2005-08-07 Roland McGrath <roland@redhat.com>

* linux-kernel-modules.c (dwfl_linux_kernel_find_elf): When module
names contain '_' or '-', look for files named either "foo-bar.ko"
or "foo_bar.ko".
/external/elfutils/libdwfl/linux-kernel-modules.c
b08d5a8fb42f4586d756068065186b5af7e48dad 26-Jul-2005 Ulrich Drepper <drepper@redhat.com> Adjust for monotone.
/external/elfutils/libdwfl/linux-kernel-modules.c