This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r205748 - in /trunk/libbacktrace: ChangeLog elf.c
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 06 Dec 2013 14:48:17 -0000
- Subject: r205748 - in /trunk/libbacktrace: ChangeLog elf.c
Author: jakub
Date: Fri Dec 6 14:48:17 2013
New Revision: 205748
URL: http://gcc.gnu.org/viewcvs?rev=205748&root=gcc&view=rev
Log:
* elf.c (ET_DYN): Undefine and define again.
(elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
return early -1 without closing the descriptor.
(struct phdr_data): Add exe_descriptor.
(phdr_callback): If pd->exe_descriptor is not -1, for very first
call if dlpi_name is NULL just call elf_add with the exe_descriptor,
otherwise backtrace_close the exe_descriptor if not -1. Adjust
call to elf_add.
(backtrace_initialize): Adjust call to elf_add. If it returns
-1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
Modified:
trunk/libbacktrace/ChangeLog
trunk/libbacktrace/elf.c