Lines Matching refs:sd

190 			  Read_symbols_data* sd)  in read_section_data()  argument
197 sd->section_headers = this->get_lasting_view(shoff, shnum * shdr_size, in read_section_data()
201 const unsigned char* pshdrs = sd->section_headers->data(); in read_section_data()
209 sd->section_names_size = in read_section_data()
211 sd->section_names = this->get_lasting_view(shdrnames.get_sh_offset(), in read_section_data()
212 sd->section_names_size, false, in read_section_data()
276 Relobj::copy_symbols_data(Symbols_data* gc_sd, Read_symbols_data* sd, in copy_symbols_data() argument
281 memcpy(gc_sd->section_headers_data, sd->section_headers->data(), in copy_symbols_data()
284 new unsigned char[sd->section_names_size]; in copy_symbols_data()
285 memcpy(gc_sd->section_names_data, sd->section_names->data(), in copy_symbols_data()
286 sd->section_names_size); in copy_symbols_data()
287 gc_sd->section_names_size = sd->section_names_size; in copy_symbols_data()
288 if (sd->symbols != NULL) in copy_symbols_data()
291 new unsigned char[sd->symbols_size]; in copy_symbols_data()
292 memcpy(gc_sd->symbols_data, sd->symbols->data(), in copy_symbols_data()
293 sd->symbols_size); in copy_symbols_data()
299 gc_sd->symbols_size = sd->symbols_size; in copy_symbols_data()
300 gc_sd->external_symbols_offset = sd->external_symbols_offset; in copy_symbols_data()
301 if (sd->symbol_names != NULL) in copy_symbols_data()
304 new unsigned char[sd->symbol_names_size]; in copy_symbols_data()
305 memcpy(gc_sd->symbol_names_data, sd->symbol_names->data(), in copy_symbols_data()
306 sd->symbol_names_size); in copy_symbols_data()
312 gc_sd->symbol_names_size = sd->symbol_names_size; in copy_symbols_data()
734 Read_symbols_data* sd) in do_find_special_sections() argument
736 const unsigned char* const pshdrs = sd->section_headers->data(); in do_find_special_sections()
737 const unsigned char* namesu = sd->section_names->data(); in do_find_special_sections()
740 if (this->find_eh_frame(pshdrs, names, sd->section_names_size)) in do_find_special_sections()
743 if (memmem(names, sd->section_names_size, ".zdebug_", 8) != NULL) in do_find_special_sections()
747 pshdrs, this->shnum(), names, sd->section_names_size, this, true); in do_find_special_sections()
755 && (memmem(names, sd->section_names_size, "debug_info", 12) == 0 in do_find_special_sections()
756 || memmem(names, sd->section_names_size, "debug_types", in do_find_special_sections()
764 Sized_relobj_file<size, big_endian>::do_read_symbols(Read_symbols_data* sd) in do_read_symbols() argument
766 this->base_read_symbols(sd); in do_read_symbols()
774 Sized_relobj_file<size, big_endian>::base_read_symbols(Read_symbols_data* sd) in base_read_symbols() argument
776 this->read_section_data(&this->elf_file_, sd); in base_read_symbols()
778 const unsigned char* const pshdrs = sd->section_headers->data(); in base_read_symbols()
782 bool need_local_symbols = this->do_find_special_sections(sd); in base_read_symbols()
784 sd->symbols = NULL; in base_read_symbols()
785 sd->symbols_size = 0; in base_read_symbols()
786 sd->external_symbols_offset = 0; in base_read_symbols()
787 sd->symbol_names = NULL; in base_read_symbols()
788 sd->symbol_names_size = 0; in base_read_symbols()
851 sd->symbols = fvsymtab; in base_read_symbols()
852 sd->symbols_size = readsize; in base_read_symbols()
853 sd->external_symbols_offset = need_local_symbols ? locsize : 0; in base_read_symbols()
854 sd->symbol_names = fvstrtab; in base_read_symbols()
855 sd->symbol_names_size = in base_read_symbols()
1281 Read_symbols_data* sd) in do_layout() argument
1305 gold_assert(sd != NULL); in do_layout()
1326 this->copy_symbols_data(gc_sd, sd, This::shdr_size * shnum); in do_layout()
1348 section_headers_data = sd->section_headers->data(); in do_layout()
1349 section_names_size = sd->section_names_size; in do_layout()
1350 if (sd->symbols != NULL) in do_layout()
1351 symbols_data = sd->symbols->data(); in do_layout()
1352 symbols_size = sd->symbols_size; in do_layout()
1353 if (sd->symbol_names != NULL) in do_layout()
1354 symbol_names_data = sd->symbol_names->data(); in do_layout()
1355 symbol_names_size = sd->symbol_names_size; in do_layout()
1365 : sd->section_names->data()); in do_layout()
1427 delete sd->section_headers; in do_layout()
1428 sd->section_headers = NULL; in do_layout()
1429 delete sd->section_names; in do_layout()
1430 sd->section_names = NULL; in do_layout()
1838 delete sd->section_headers; in do_layout()
1839 sd->section_headers = NULL; in do_layout()
1840 delete sd->section_names; in do_layout()
1841 sd->section_names = NULL; in do_layout()
1875 Read_symbols_data sd; in do_layout_deferred_sections() local
1876 this->base_read_symbols(&sd); in do_layout_deferred_sections()
1878 sd.symbols->data(), in do_layout_deferred_sections()
1879 sd.symbols_size, in do_layout_deferred_sections()
1880 sd.symbol_names->data(), in do_layout_deferred_sections()
1881 sd.symbol_names_size, in do_layout_deferred_sections()
1937 Read_symbols_data* sd, in do_add_symbols() argument
1940 if (sd->symbols == NULL) in do_add_symbols()
1942 gold_assert(sd->symbol_names == NULL); in do_add_symbols()
1947 size_t symcount = ((sd->symbols_size - sd->external_symbols_offset) in do_add_symbols()
1949 if (symcount * sym_size != sd->symbols_size - sd->external_symbols_offset) in do_add_symbols()
1958 reinterpret_cast<const char*>(sd->symbol_names->data()); in do_add_symbols()
1960 sd->symbols->data() + sd->external_symbols_offset, in do_add_symbols()
1962 sym_names, sd->symbol_names_size, in do_add_symbols()
1966 delete sd->symbols; in do_add_symbols()
1967 sd->symbols = NULL; in do_add_symbols()
1968 delete sd->symbol_names; in do_add_symbols()
1969 sd->symbol_names = NULL; in do_add_symbols()
1982 Read_symbols_data* sd, in do_should_include_member() argument
1988 reinterpret_cast<const char*>(sd->symbol_names->data()); in do_should_include_member()
1990 sd->symbols->data() + sd->external_symbols_offset; in do_should_include_member()
1992 size_t symcount = ((sd->symbols_size - sd->external_symbols_offset) in do_should_include_member()
2030 Read_symbols_data* sd, in do_for_all_global_symbols() argument
2034 reinterpret_cast<const char*>(sd->symbol_names->data()); in do_for_all_global_symbols()
2036 sd->symbols->data() + sd->external_symbols_offset; in do_for_all_global_symbols()
2038 size_t symcount = ((sd->symbols_size - sd->external_symbols_offset) in do_for_all_global_symbols()
2505 Symbols_data* sd = this->get_symbols_data(); in do_section_flags() local
2506 if (sd != NULL) in do_section_flags()
2508 const unsigned char* pshdrs = sd->section_headers_data in do_section_flags()
2524 Symbols_data* sd = this->get_symbols_data(); in do_section_entsize() local
2525 gold_assert(sd != NULL); in do_section_entsize()
2527 const unsigned char* pshdrs = sd->section_headers_data in do_section_entsize()