]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Provide virtual symbols for ppc64 function descriptors jankratochvil/ppc64bidir
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 6 Nov 2013 19:38:05 +0000 (20:38 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 2 Dec 2013 20:57:05 +0000 (21:57 +0100)
commit47f231a51308e70a24ad087c6d0bc5d934483b50
tree50d4fed5dbd360e7f4fae32ee98e25d0ca1da663
parent8ae9bc9d315be6ecbb97dd9754b9d8424b5a70f0
Provide virtual symbols for ppc64 function descriptors

backends/
2013-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>

Provide virtual symbols for ppc64 function descriptors.
* Makefile.am (ppc64_SRCS): Add ppc64_get_symbol.c.
* ppc64_get_symbol.c: New file.
* ppc64_init.c (ppc64_init): Install init_symbols, get_symbol and
destr.

libdwfl/
2013-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dwfl_module_addrsym.c (dwfl_module_addrsym): Adjust FIRST_GLOBAL also
for EBL_FIRST_GLOBAL.
* dwfl_module_getdwarf.c (getsym_helper): New function.
(find_symtab): Call also ebl_init_symbols.
(dwfl_module_getsymtab): Count also EBL_SYMENTS.
* dwfl_module_getsym.c (dwfl_module_getsym_elf): Count also
EBL_FIRST_GLOBAL, EBL_SYMENTS.  Call also ebl_get_symbol.
* libdwflP.h (DWFL_ERRORS): Add INVALID_INDEX.
(struct Dwfl_Module): Add fields ebl_syments and ebl_first_global.

libebl/
2013-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>

Provide virtual symbols for ppc64 function descriptors.
* Makefile.am (gen_SOURCES): Add eblgetsymbol.c.
* ebl-hooks.h (init_symbols, get_symbol): New.
* eblgetsymbol.c: New file.
* libebl.h (ebl_getsym_t): New definition.
(ebl_init_symbols, ebl_get_symbol): New declarations.
* libeblP.h (struct ebl): New field backend.

tests/
2013-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>

Provide virtual symbols for ppc64 function descriptors.
* Makefile.am (EXTRA_DIST): Add testfile66.bz2 and testfile66.core.bz2.
* dwflsyms.c (list_syms): Remove unused from parameter mod_name.  Print
error on dwfl_module_getsymtab error.
* run-addrname-test.sh (testfile66, testfile66.core): New tests.
* run-dwflsyms.sh (testfile66, testfile66.core, hello_ppc64.ko): New
tests.
* testfile66.bz2: New file.
* testfile66.core.bz2: New file.

Signed-off-by: Jan Kratochvil <jan.kratochvil@redhat.com>
18 files changed:
backends/Makefile.am
backends/ppc64_get_symbol.c [new file with mode: 0644]
backends/ppc64_init.c
libdwfl/dwfl_module_addrsym.c
libdwfl/dwfl_module_getdwarf.c
libdwfl/dwfl_module_getsym.c
libdwfl/libdwflP.h
libebl/Makefile.am
libebl/ebl-hooks.h
libebl/eblgetsymbol.c [new file with mode: 0644]
libebl/libebl.h
libebl/libeblP.h
tests/Makefile.am
tests/dwflsyms.c
tests/run-addrname-test.sh
tests/run-dwflsyms.sh
tests/testfile66.bz2 [new file with mode: 0755]
tests/testfile66.core.bz2 [new file with mode: 0644]