Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/openbsd-src/gnu/llvm/lld/ELF/
H A DMarkLive.cpp53 void enqueue(InputSectionBase *sec, uint64_t offset);
58 void resolveReloc(InputSectionBase &sec, RelTy &rel, bool fromFDE);
76 static uint64_t getAddend(InputSectionBase &sec, in getAddend() argument
78 return target->getImplicitAddend(sec.content().begin() + rel.r_offset, in getAddend()
83 static uint64_t getAddend(InputSectionBase &sec, in getAddend() argument
90 void MarkLive<ELFT>::resolveReloc(InputSectionBase &sec, RelTy &rel, in resolveReloc() argument
92 Symbol &sym = sec.getFile<ELFT>()->getRelocTargetSym(rel); in resolveReloc()
104 offset += getAddend<ELFT>(sec, rel); in resolveReloc()
124 for (InputSectionBase *sec : cNamedSections.lookup(sym.getName())) in resolveReloc()
125 enqueue(sec, 0); in resolveReloc()
[all …]
H A DLinkerScript.cpp115 if (sec) in getValue()
116 return alignToPowerOf2(sec->getOutputSection()->addr + sec->getOffset(val), in getValue()
122 return sec ? sec->getOutputSection()->addr + sec->getOffset(0) : 0; in getSecAddr()
129 if (alignment == 1 && !sec) in getSectionOffset()
137 OutputDesc *sec; in createOutputSection() local
140 sec = secRef; in createOutputSection()
142 sec = make<OutputDesc>(name, SHT_PROGBITS, 0); in createOutputSection()
144 secRef = sec; in createOutputSection()
146 sec->osec.location = std::string(location); in createOutputSection()
147 return sec; in createOutputSection()
[all …]
H A DDWARF.cpp32 for (auto [i, sec] : llvm::enumerate(obj->getSections())) { in LLDDwarfObj()
33 if (!sec) in LLDDwarfObj()
37 StringSwitch<LLDDWARFSection *>(sec->name) in LLDDwarfObj()
47 m->Data = toStringRef(sec->contentMaybeDecompress()); in LLDDwarfObj()
48 m->sec = sec; in LLDDwarfObj()
52 if (sec->name == ".debug_abbrev") in LLDDwarfObj()
53 abbrevSection = toStringRef(sec->contentMaybeDecompress()); in LLDDwarfObj()
54 else if (sec->name == ".debug_str") in LLDDwarfObj()
55 strSection = toStringRef(sec->contentMaybeDecompress()); in LLDDwarfObj()
56 else if (sec->name == ".debug_line_str") in LLDDwarfObj()
[all …]
H A DWriter.cpp116 for (OutputSection *sec : outputSections) in removeEmptyPTLoad()
117 if (removed.count(sec->ptLoad)) in removeEmptyPTLoad()
118 sec->ptLoad = nullptr; in removeEmptyPTLoad()
145 static Defined *addOptionalRegular(StringRef name, SectionBase *sec, in addOptionalRegular() argument
152 /*size=*/0, sec}); in addOptionalRegular()
275 InputSection *sec = createInterpSection(); in createSyntheticSections() local
276 sec->partition = i; in createSyntheticSections()
277 ctx.inputSections.push_back(sec); in createSyntheticSections()
281 auto add = [](SyntheticSection &sec) { ctx.inputSections.push_back(&sec); }; in createSyntheticSections() argument
323 auto add = [&](SyntheticSection &sec) { in createSyntheticSections() argument
[all …]
H A DInputFiles.cpp323 InputSectionBase &sec, uint64_t offset) { in getSrcMsgAux() argument
326 if (std::optional<DILineInfo> info = file.getDILineInfo(&sec, offset)) in getSrcMsgAux()
338 std::string InputFile::getSrcMsg(const Symbol &sym, InputSectionBase &sec, in getSrcMsg() argument
346 return getSrcMsgAux(cast<ObjFile<ELF32LE>>(*this), sym, sec, offset); in getSrcMsg()
348 return getSrcMsgAux(cast<ObjFile<ELF32BE>>(*this), sym, sec, offset); in getSrcMsg()
350 return getSrcMsgAux(cast<ObjFile<ELF64LE>>(*this), sym, sec, offset); in getSrcMsg()
352 return getSrcMsgAux(cast<ObjFile<ELF64BE>>(*this), sym, sec, offset); in getSrcMsg()
471 for (const Elf_Shdr &sec : sections) in findSection() local
472 if (sec.sh_type == type) in findSection()
473 return &sec; in findSection()
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Daix5ppc-core.c53 asection *sec; in xcoff64_core_p() local
120 sec = bfd_make_section_anyway (abfd, ".stack"); in xcoff64_core_p()
121 if (NULL == sec) in xcoff64_core_p()
124 sec->flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS; in xcoff64_core_p()
125 sec->size = core.c_size; in xcoff64_core_p()
126 sec->vma = core.c_stackorg; in xcoff64_core_p()
127 sec->filepos = core.c_stack; in xcoff64_core_p()
130 sec = bfd_make_section_anyway (abfd, ".reg"); in xcoff64_core_p()
131 if (NULL == sec) in xcoff64_core_p()
134 sec->flags = SEC_HAS_CONTENTS | SEC_IN_MEMORY; in xcoff64_core_p()
[all …]
H A Dmerge.c88 asection *sec; member
292 asection *sec = secinfo->sec; in sec_merge_emit() local
295 int alignment_power = sec->output_section->alignment_power; in sec_merge_emit()
327 off = sec->size - off; in sec_merge_emit()
346 _bfd_add_merge_section (bfd *abfd, void **psinfo, asection *sec, in _bfd_add_merge_section() argument
355 || (sec->flags & SEC_MERGE) == 0) in _bfd_add_merge_section()
358 if (sec->size == 0 in _bfd_add_merge_section()
359 || (sec->flags & SEC_EXCLUDE) != 0 in _bfd_add_merge_section()
360 || sec->entsize == 0) in _bfd_add_merge_section()
363 if ((sec->flags & SEC_RELOC) != 0) in _bfd_add_merge_section()
[all …]
H A Dmmo.c338 #define mmo_section_data(sec) \ argument
339 ((struct mmo_section_data_struct *) (sec)->used_by_bfd)
354 asection *sec; member
447 asection *sec = bfd_get_section_by_name (abfd, secname); in mmo_make_section() local
449 if (sec == NULL) in mmo_make_section()
461 sec = bfd_make_section (abfd, newsecname); in mmo_make_section()
464 return sec; in mmo_make_section()
604 mmo_find_sec_w_addr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *p) in mmo_find_sec_w_addr() argument
607 bfd_vma vma = bfd_get_section_vma (abfd, sec); in mmo_find_sec_w_addr()
610 if ((bfd_get_section_flags (abfd, sec) & (SEC_LOAD | SEC_ALLOC)) in mmo_find_sec_w_addr()
[all …]
H A Delf32-ip2k.c330 asection *sec, in ip2k_is_switch_table_128() argument
338 if (addr + 4 > sec->size) in ip2k_is_switch_table_128()
410 asection *sec, in ip2k_is_switch_table_256() argument
418 if (addr + 4 > sec->size) in ip2k_is_switch_table_256()
467 asection *sec, in ip2k_nominal_page_bits() argument
471 bfd_vma page = PAGENO (BASEADDR (sec) + addr); in ip2k_nominal_page_bits()
477 if (PAGENO (BASEADDR (sec)) == page) in ip2k_nominal_page_bits()
484 while (PAGENO (BASEADDR (sec) + addr - 2) == page) in ip2k_nominal_page_bits()
494 if (ip2k_is_switch_table_128 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits()
498 if (ip2k_is_switch_table_256 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits()
[all …]
H A Delf32-xtensa.c757 asection *sec, in elf_xtensa_check_relocs() argument
771 rel_end = relocs + sec->reloc_count; in elf_xtensa_check_relocs()
804 if ((sec->flags & SEC_ALLOC) != 0) in elf_xtensa_check_relocs()
819 if ((sec->flags & SEC_ALLOC) != 0) in elf_xtensa_check_relocs()
844 if ((sec->flags & SEC_ALLOC) != 0) in elf_xtensa_check_relocs()
910 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf_xtensa_check_relocs()
917 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) in elf_xtensa_check_relocs()
971 elf_xtensa_gc_mark_hook (asection *sec, in elf_xtensa_gc_mark_hook() argument
1001 return bfd_section_from_elf_index (sec->owner, sym->st_shndx); in elf_xtensa_gc_mark_hook()
1013 asection *sec, in elf_xtensa_gc_sweep_hook() argument
[all …]
H A Delf-m10200.c360 asection *sec; local
371 sec = NULL;
375 sec = local_sections[r_symndx];
376 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
384 h, sec, relocation,
392 info, sec, h == NULL);
406 name = bfd_section_name (input_bfd, sec);
485 mn10200_elf_relax_section (abfd, sec, link_info, again) in mn10200_elf_relax_section() argument
487 asection *sec;
504 || (sec->flags & SEC_RELOC) == 0
[all …]
H A Delf32-crx.c427 asection *sec ATTRIBUTE_UNUSED, in crx_elf_final_link_relocate()
577 asection *sec, bfd_vma addr, int count) in elf32_crx_relax_delete_bytes() argument
592 sec_shndx = _bfd_elf_section_from_bfd_section (abfd, sec); in elf32_crx_relax_delete_bytes()
594 contents = elf_section_data (sec)->this_hdr.contents; in elf32_crx_relax_delete_bytes()
600 toaddr = sec->size; in elf32_crx_relax_delete_bytes()
602 irel = elf_section_data (sec)->relocs; in elf32_crx_relax_delete_bytes()
603 irelend = irel + sec->reloc_count; in elf32_crx_relax_delete_bytes()
608 sec->size -= count; in elf32_crx_relax_delete_bytes()
611 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_crx_relax_delete_bytes()
630 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_crx_relax_delete_bytes()
[all …]
/openbsd-src/gnu/usr.bin/binutils/bfd/
H A Daix5ppc-core.c58 asection *sec; local
123 sec = bfd_make_section_anyway (abfd, ".stack");
124 if (NULL == sec)
127 sec->flags = SEC_ALLOC | SEC_LOAD | SEC_HAS_CONTENTS;
128 sec->_raw_size = core.c_size;
129 sec->vma = core.c_stackorg;
130 sec->filepos = core.c_stack;
133 sec = bfd_make_section_anyway (abfd, ".reg");
134 if (NULL == sec)
137 sec->flags = SEC_HAS_CONTENTS | SEC_IN_MEMORY;
[all …]
H A Dmerge.c87 asection *sec; member
294 asection *sec = secinfo->sec; in sec_merge_emit() local
297 int alignment_power = bfd_get_section_alignment (abfd, sec->output_section); in sec_merge_emit()
335 _bfd_merge_section (bfd *abfd, void **psinfo, asection *sec, void **psecinfo) in _bfd_merge_section() argument
342 if (sec->_raw_size == 0 in _bfd_merge_section()
343 || (sec->flags & SEC_EXCLUDE) in _bfd_merge_section()
344 || (sec->flags & SEC_MERGE) == 0 in _bfd_merge_section()
345 || sec->entsize == 0) in _bfd_merge_section()
348 if ((sec->flags & SEC_RELOC) != 0) in _bfd_merge_section()
354 align = bfd_get_section_alignment (sec->owner, sec); in _bfd_merge_section()
[all …]
H A Delf32-ip2k.c361 ip2k_nominal_page_bits (abfd, sec, addr, contents) in ip2k_nominal_page_bits() argument
363 asection *sec;
367 bfd_vma page = PAGENO (BASEADDR (sec) + addr);
373 if (PAGENO (BASEADDR (sec)) == page)
380 while (PAGENO (BASEADDR (sec) + addr - 2) == page)
390 if (ip2k_is_switch_table_128 (abfd, sec, addr, contents) != -1)
394 if (ip2k_is_switch_table_256 (abfd, sec, addr, contents) != -1)
416 ip2k_test_page_insn (abfd, sec, irel, misc) in ip2k_test_page_insn() argument
418 asection *sec;
434 ip2k_nominal_page_bits (abfd, sec, irel->r_offset, misc->contents))
[all …]
H A Dmmo.c338 #define mmo_section_data(sec) \ argument
339 ((struct mmo_section_data_struct *) (sec)->used_by_bfd)
354 asection *sec; member
494 asection *sec = bfd_get_section_by_name (abfd, secname); local
496 if (sec == NULL)
508 sec = bfd_make_section (abfd, newsecname);
511 return sec;
655 mmo_find_sec_w_addr (abfd, sec, p) in mmo_find_sec_w_addr() argument
657 asection *sec;
661 bfd_vma vma = bfd_get_section_vma (abfd, sec);
[all …]
H A Delf-eh-frame.c210 (bfd *abfd, struct bfd_link_info *info, asection *sec, in _bfd_elf_discard_section_eh_frame() argument
227 if (sec->_raw_size == 0) in _bfd_elf_discard_section_eh_frame()
233 if ((sec->output_section != NULL in _bfd_elf_discard_section_eh_frame()
234 && bfd_is_abs_section (sec->output_section))) in _bfd_elf_discard_section_eh_frame()
246 ehbuf = bfd_malloc (sec->_raw_size); in _bfd_elf_discard_section_eh_frame()
250 if (! bfd_get_section_contents (abfd, sec, ehbuf, 0, sec->_raw_size)) in _bfd_elf_discard_section_eh_frame()
253 if (sec->_raw_size >= 4 in _bfd_elf_discard_section_eh_frame()
264 if (sec->_raw_size != (unsigned int) sec->_raw_size) in _bfd_elf_discard_section_eh_frame()
274 new_size = sec->_raw_size; in _bfd_elf_discard_section_eh_frame()
323 if ((bfd_size_type) (buf - ehbuf) == sec->_raw_size) in _bfd_elf_discard_section_eh_frame()
[all …]
H A Delf-m10200.c360 asection *sec; local
371 sec = NULL;
375 sec = local_sections[r_symndx];
376 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
384 h, sec, relocation,
392 info, sec, h == NULL);
406 name = bfd_section_name (input_bfd, sec);
484 mn10200_elf_relax_section (abfd, sec, link_info, again) in mn10200_elf_relax_section() argument
486 asection *sec;
503 || (sec->flags & SEC_RELOC) == 0
[all …]
H A Delf32-xtensa.c616 elf_xtensa_check_relocs (abfd, info, sec, relocs) in elf_xtensa_check_relocs() argument
619 asection *sec;
633 rel_end = relocs + sec->reloc_count;
667 if ((sec->flags & SEC_ALLOC) != 0)
682 if ((sec->flags & SEC_ALLOC) != 0)
707 if ((sec->flags & SEC_ALLOC) != 0)
740 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
747 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
778 elf_xtensa_gc_mark_hook (sec, info, rel, h, sym) in elf_xtensa_gc_mark_hook() argument
779 asection *sec; in elf_xtensa_gc_mark_hook()
[all …]
H A Delf32-m68hc11.c542 m68hc11_relax_group (bfd *abfd, asection *sec, bfd_byte *contents, in m68hc11_relax_group() argument
630 m68hc11_elf_relax_delete_bytes (abfd, sec, start_offset, in m68hc11_relax_group()
644 m68hc11_elf_relax_delete_bytes (abfd, sec, ldx_offset, ldx_size); in m68hc11_relax_group()
654 m68hc11_elf_relax_section (bfd *abfd, asection *sec, in m68hc11_elf_relax_section() argument
677 || (sec->flags & SEC_RELOC) == 0 in m68hc11_elf_relax_section()
678 || sec->reloc_count == 0 in m68hc11_elf_relax_section()
679 || (sec->flags & SEC_CODE) == 0) in m68hc11_elf_relax_section()
684 if (sec->_cooked_size == 0) in m68hc11_elf_relax_section()
685 sec->_cooked_size = sec->_raw_size; in m68hc11_elf_relax_section()
692 (abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL, in m68hc11_elf_relax_section()
[all …]
H A Delf32-h8300.c423 asection *sec; in elf32_h8_relocate_section() local
433 sec = NULL; in elf32_h8_relocate_section()
437 sec = local_sections[r_symndx]; in elf32_h8_relocate_section()
438 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in elf32_h8_relocate_section()
446 h, sec, relocation, in elf32_h8_relocate_section()
454 info, sec, h == NULL); in elf32_h8_relocate_section()
473 name = bfd_section_name (input_bfd, sec); in elf32_h8_relocate_section()
659 elf32_h8_relax_section (bfd *abfd, asection *sec, in elf32_h8_relax_section() argument
677 || (sec->flags & SEC_RELOC) == 0 in elf32_h8_relax_section()
678 || sec->reloc_count == 0 in elf32_h8_relax_section()
[all …]
H A Delf64-mmix.c77 #define mmix_elf_section_data(sec) \ argument
78 ((struct _mmix_elf_section_data *) elf_section_data (sec))
217 PARAMS ((bfd *abfd, asection *sec, struct bfd_link_info *link_info,
863 mmix_elf_new_section_hook (abfd, sec) in mmix_elf_new_section_hook() argument
865 asection *sec;
873 sec->used_by_bfd = (PTR) sdata;
875 return _bfd_elf_new_section_hook (abfd, sec);
1360 asection *sec; local
1388 sec = local_sections [r_symndx];
1389 rel->r_addend += sec->output_offset + sym->st_value;
[all …]
/openbsd-src/regress/sys/netinet/ipsec/
H A DMakefile182 .for sec in ESP AH IPIP IPCOMP BUNDLE
294 .for sec in ESP AH IPIP IPCOMP BUNDLE
302 TARGETS += ping-${len}-${host}_${sec}_${mode}_${ipv}
303 ping ${host:L} ${sec:L} ${mode:L} ${ipv:L}:\
304 run-send-ping-${len}-${host}_${sec}_${mode}_${ipv}
305 run-send-ping-${len}-${host}_${sec}_${mode}_${ipv}:
306 netstat -s -p ${sec:L:S/ipip/ipencap/:S/bundle/esp/} |\
308 netstat -s -p ${sec:L:S/ipip/ipencap/:S/bundle/esp/} |\
310 ${ping} ${size} -n -c 1 -w 2 ${${host}_${sec}_${mode}_${ipv}}
311 .if "${host}" == SRC || ( "${len}" == small && "${sec}" == IPCOMP )
[all …]
/openbsd-src/regress/sbin/isakmpd/exchange/
H A Drun.pl36 $conaddr, $sec, $tick, $action, $template, $data, $next,
61 my ($sec, $usec) = unpack ("ll", $tv);
62 $sec % 86400 + $usec / 1000000;
65 $sec = &getsec;
79 $next = $sec + $tick * $tickfac;
82 print STDERR "waiting ", $next - $sec, " secs\n";
83 select undef, undef, undef, $next - $sec
84 while ($sec = &getsec) < $next;
89 $sec = &getsec;
91 $next - $sec);
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/Devel-PPPort/
H A DRealPPPort_xs.PL39 my $sec;
45 for $sec (keys %SECTION) {
46 if (exists $spec->{$sec}) {
48 if (exists $SECTION{$sec}{header}) {
49 my $header = $SECTION{$sec}{header};
51 $SECTION{$sec}{code} .= $header . "\n";
53 $SECTION{$sec}{code} .= $spec->{$sec} . "\n";
60 for $sec (keys %SECTION) {
61 my $code = $SECTION{$sec}{code};
62 if (exists $SECTION{$sec}{indent}) {
[all …]

12345678910>>...33