Home | History | Annotate | Download | only in linker

Lines Matching defs:Add

205     // Add this section to the list of generated ELF sections (if not there already).
246 Elf_Word Add(const void* data, size_t length) {
289 Elf_Word Add(const std::string& name) {
293 return CachedSection::Add(name.c_str(), name.length() + 1);
357 void Add(Elf_Word name,
371 Add(name, section_index, addr, size, binding, type);
375 void Add(Elf_Word name,
721 dynstr_.Add(""); // dynstr should start with empty string.
722 Elf_Word oatdata = dynstr_.Add("oatdata");
723 dynsym_.Add(oatdata, &rodata_, rodata_.GetAddress(), rodata_size, STB_GLOBAL, STT_OBJECT);
727 Elf_Word oatexec = dynstr_.Add("oatexec");
728 dynsym_.Add(oatexec, &text_, text_.GetAddress(), /* size */ 0, STB_GLOBAL, STT_OBJECT);
729 Elf_Word oatlastword = dynstr_.Add("oatlastword");
731 dynsym_.Add(oatlastword, &text_, oatlastword_address, 4, STB_GLOBAL, STT_OBJECT);
734 Elf_Word oatlastword = dynstr_.Add("oatlastword");
736 dynsym_.Add(oatlastword, &rodata_, oatlastword_address, 4, STB_GLOBAL, STT_OBJECT);
740 Elf_Word oatbss = dynstr_.Add("oatbss");
741 dynsym_.Add(oatbss, &bss_, bss_.GetAddress(), bss_roots_offset, STB_GLOBAL, STT_OBJECT);
744 // Add a symbol marking the start of the methods part of the .bss, if not empty.
748 Elf_Word oatbssroots = dynstr_.Add("oatbssmethods");
749 dynsym_.Add(
752 // Add a symbol marking the start of the GC roots part of the .bss, if not empty.
756 Elf_Word oatbssroots = dynstr_.Add("oatbssroots");
757 dynsym_.Add(
760 Elf_Word oatbsslastword = dynstr_.Add("oatbsslastword");
762 dynsym_.Add(oatbsslastword, &bss_, bsslastword_address, 4, STB_GLOBAL, STT_OBJECT);
765 Elf_Word oatdex = dynstr_.Add("oatdex");
766 dynsym_.Add(oatdex, &dex_, dex_.GetAddress(), /* size */ 0, STB_GLOBAL, STT_OBJECT);
767 Elf_Word oatdexlastword = dynstr_.Add("oatdexlastword");
769 dynsym_.Add(oatdexlastword, &dex_, oatdexlastword_address, 4, STB_GLOBAL, STT_OBJECT);
772 Elf_Word soname_offset = dynstr_.Add(soname);
789 hash_.Add(hash.data(), hash.size() * sizeof(hash[0]));
805 dynamic_.Add(&dyns, sizeof(dyns));