|
From: Kouhei S. <nul...@cl...> - 2013-11-17 08:51:10
|
Kouhei Sutou 2013-11-17 17:50:47 +0900 (Sun, 17 Nov 2013) New Revision: da6741e994e5ac38010a3ecb433cfa007ee22d9a https://github.com/clear-code/cutter/commit/da6741e994e5ac38010a3ecb433cfa007ee22d9a Message: loader elf: fix wrong comparision Info and bind aren't flags. They are just values. Modified files: cutter/cut-elf-loader.c Modified: cutter/cut-elf-loader.c (+2 -2) =================================================================== --- cutter/cut-elf-loader.c 2013-11-17 17:33:48 +0900 (eac173f) +++ cutter/cut-elf-loader.c 2013-11-17 17:50:47 +0900 (e49fa41) @@ -392,8 +392,8 @@ cut_elf_loader_collect_symbols (CutELFLoader *loader) section_header_index = symbol_64->st_shndx; } - if ((info & STT_FUNC) && - (bind & STB_GLOBAL) && + if ((info == STT_FUNC) && + (bind == STB_GLOBAL) && (section_header_index == text_section_header_index)) { const gchar *name; |