]> sourceware.org Git - libabigail.git/commit
ctf-reader: looks for debug information in out-of-tree modules
authorGuillermo E. Martinez via Libabigail <libabigail@sourceware.org>
Mon, 15 Aug 2022 19:32:09 +0000 (14:32 -0500)
committerDodji Seketeli <dodji@redhat.com>
Mon, 29 Aug 2022 10:53:55 +0000 (12:53 +0200)
commitb56065ae0ef91e19978841563934a5df417b1011
treee21229c786aec8ade37141e33d899ffb244c23d9
parentd6440e7b390989e0c4e8b4846a27a226af4ad641
ctf-reader: looks for debug information in out-of-tree modules

The archive `vmlinux.ctfa' contain CTF debug information for
all the types used by more than one module, CTF for the core
kernel and CTF for each module compiled in Linux tree directory.
CTF information for out-of-tree module is not present in
`vmlinux.ctfa' file, even so, the compiler can emit the `.ctf'
section into the out-of-tree modules and it can be extracted
by the libabigail tools.

* src/abg-ctf-reader.cc (process_ctf_archive, read_corpus
slurp_elf_info): Avoid looking for `vmlinux.ctfa' when we aren't
processing a `cur_corpus_group_'. So CTF info is embedded in the
`.ko' file.
* tests/data/Makefile.am: Add test inputs and expected files.
* tests/data/test-read-ctf/test-linux-module.{ko,c,abi}: Add new
test input and reference kABI.
* tests/test-read-ctf.cc: Add new testcase.

Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-ctf-reader.cc
tests/data/Makefile.am
tests/data/test-read-ctf/test-linux-module.abi [new file with mode: 0644]
tests/data/test-read-ctf/test-linux-module.c [new file with mode: 0644]
tests/data/test-read-ctf/test-linux-module.ko [new file with mode: 0644]
tests/test-read-ctf.cc
This page took 0.031839 seconds and 5 git commands to generate.