diff options
author | Jakub Jelinek <jakub@redhat.com> | 2013-12-06 15:48:17 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-12-06 15:48:17 +0100 |
commit | 0284b52ec9c54f2071f3f71cd994c2bf49b38639 (patch) | |
tree | 62e73fccfcd14dbc8f71e874338ac6901fd4adb0 /gcc | |
parent | 26c096c3a397a9b7ae7d5a0efea8ed115c3a8ee9 (diff) | |
download | gcc-0284b52ec9c54f2071f3f71cd994c2bf49b38639.zip gcc-0284b52ec9c54f2071f3f71cd994c2bf49b38639.tar.gz gcc-0284b52ec9c54f2071f3f71cd994c2bf49b38639.tar.bz2 |
elf.c (ET_DYN): Undefine and define again.
* 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.
From-SVN: r205748
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions