Home
last modified time | relevance | path

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

12345678910>>...15

/toolchain/binutils/binutils-2.25/bfd/
Dcompress.c89 sec_ptr sec ATTRIBUTE_UNUSED, in bfd_compress_section_contents()
130 if (uncompressed_buffer == sec->contents) in bfd_compress_section_contents()
133 sec->contents = compressed_buffer; in bfd_compress_section_contents()
134 sec->size = compressed_size; in bfd_compress_section_contents()
135 sec->compress_status = COMPRESS_SECTION_DONE; in bfd_compress_section_contents()
159 bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr) in bfd_get_full_section_contents() argument
170 if (abfd->direction != write_direction && sec->rawsize != 0) in bfd_get_full_section_contents()
171 sz = sec->rawsize; in bfd_get_full_section_contents()
173 sz = sec->size; in bfd_get_full_section_contents()
177 switch (sec->compress_status) in bfd_get_full_section_contents()
[all …]
Dmerge.c89 asection *sec; member
289 asection *sec = secinfo->sec; in sec_merge_emit() local
292 int alignment_power = sec->output_section->alignment_power; in sec_merge_emit()
324 off = sec->size - off; in sec_merge_emit()
343 _bfd_add_merge_section (bfd *abfd, void **psinfo, asection *sec, in _bfd_add_merge_section() argument
353 || (sec->flags & SEC_MERGE) == 0) in _bfd_add_merge_section()
356 if (sec->size == 0 in _bfd_add_merge_section()
357 || (sec->flags & SEC_EXCLUDE) != 0 in _bfd_add_merge_section()
358 || sec->entsize == 0) in _bfd_add_merge_section()
361 if ((sec->flags & SEC_RELOC) != 0) in _bfd_add_merge_section()
[all …]
Dmmo.c343 #define mmo_section_data(sec) \ argument
344 ((struct mmo_section_data_struct *) (sec)->used_by_bfd)
359 asection *sec; member
450 asection *sec = bfd_get_section_by_name (abfd, secname); in mmo_make_section() local
452 if (sec == NULL) in mmo_make_section()
464 sec = bfd_make_section (abfd, newsecname); in mmo_make_section()
467 return sec; in mmo_make_section()
607 mmo_find_sec_w_addr (bfd *abfd ATTRIBUTE_UNUSED, asection *sec, void *p) in mmo_find_sec_w_addr() argument
610 bfd_vma vma = bfd_get_section_vma (abfd, sec); in mmo_find_sec_w_addr()
613 if ((bfd_get_section_flags (abfd, sec) & (SEC_LOAD | SEC_ALLOC)) in mmo_find_sec_w_addr()
[all …]
Daix5ppc-core.c58 asection *sec; in xcoff64_core_p() local
127 sec = bfd_make_section_anyway_with_flags (abfd, ".stack", flags); in xcoff64_core_p()
128 if (NULL == sec) in xcoff64_core_p()
131 sec->size = core.c_size; in xcoff64_core_p()
132 sec->vma = core.c_stackorg; in xcoff64_core_p()
133 sec->filepos = core.c_stack; in xcoff64_core_p()
137 sec = bfd_make_section_anyway_with_flags (abfd, ".reg", flags); in xcoff64_core_p()
138 if (NULL == sec) in xcoff64_core_p()
141 sec->size = sizeof (struct __context64); in xcoff64_core_p()
142 sec->vma = 0; in xcoff64_core_p()
[all …]
Delf32-ip2k.c344 asection *sec, in ip2k_is_switch_table_128() argument
352 if (addr + 4 > sec->size) in ip2k_is_switch_table_128()
424 asection *sec, in ip2k_is_switch_table_256() argument
432 if (addr + 4 > sec->size) in ip2k_is_switch_table_256()
481 asection *sec, in ip2k_nominal_page_bits() argument
485 bfd_vma page = PAGENO (BASEADDR (sec) + addr); in ip2k_nominal_page_bits()
491 if (PAGENO (BASEADDR (sec)) == page) in ip2k_nominal_page_bits()
498 while (PAGENO (BASEADDR (sec) + addr - 2) == page) in ip2k_nominal_page_bits()
508 if (ip2k_is_switch_table_128 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits()
512 if (ip2k_is_switch_table_256 (abfd, sec, addr, contents) != -1) in ip2k_nominal_page_bits()
[all …]
Delf-m10200.c354 asection *sec; in mn10200_elf_relocate_section() local
365 sec = NULL; in mn10200_elf_relocate_section()
369 sec = local_sections[r_symndx]; in mn10200_elf_relocate_section()
370 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in mn10200_elf_relocate_section()
378 h, sec, relocation, in mn10200_elf_relocate_section()
382 if (sec != NULL && discarded_section (sec)) in mn10200_elf_relocate_section()
393 info, sec, h == NULL); in mn10200_elf_relocate_section()
407 name = bfd_section_name (input_bfd, sec); in mn10200_elf_relocate_section()
459 mn10200_elf_relax_delete_bytes (bfd *abfd, asection *sec, in mn10200_elf_relax_delete_bytes() argument
473 sec_shndx = _bfd_elf_section_from_bfd_section (abfd, sec); in mn10200_elf_relax_delete_bytes()
[all …]
Delf-vxworks.c196 asection *sec = (*hash_ptr)->root.u.def.section; in elf_vxworks_emit_relocs() local
197 int this_idx = sec->output_section->target_index; in elf_vxworks_emit_relocs()
202 irela[j].r_addend += sec->output_offset; in elf_vxworks_emit_relocs()
221 asection * sec; in elf_vxworks_final_write_processing() local
224 sec = bfd_get_section_by_name (abfd, ".rel.plt.unloaded"); in elf_vxworks_final_write_processing()
225 if (!sec) in elf_vxworks_final_write_processing()
226 sec = bfd_get_section_by_name (abfd, ".rela.plt.unloaded"); in elf_vxworks_final_write_processing()
227 if (!sec) in elf_vxworks_final_write_processing()
229 d = elf_section_data (sec); in elf_vxworks_final_write_processing()
231 sec = bfd_get_section_by_name (abfd, ".plt"); in elf_vxworks_final_write_processing()
[all …]
Delf32-xtensa.c960 asection *sec, in elf_xtensa_check_relocs() argument
969 if (info->relocatable || (sec->flags & SEC_ALLOC) == 0) in elf_xtensa_check_relocs()
981 rel_end = relocs + sec->reloc_count; in elf_xtensa_check_relocs()
1071 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in elf_xtensa_check_relocs()
1080 && !bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) in elf_xtensa_check_relocs()
1237 elf_xtensa_gc_mark_hook (asection *sec, in elf_xtensa_gc_mark_hook() argument
1253 if (xtensa_is_property_section (sec)) in elf_xtensa_gc_mark_hook()
1264 return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym); in elf_xtensa_gc_mark_hook()
1274 asection *sec, in elf_xtensa_gc_sweep_hook() argument
1289 if ((sec->flags & SEC_ALLOC) == 0) in elf_xtensa_gc_sweep_hook()
[all …]
Delf32-spu.c234 spu_elf_new_section_hook (bfd *abfd, asection *sec) in spu_elf_new_section_hook() argument
236 if (!sec->used_by_bfd) in spu_elf_new_section_hook()
243 sec->used_by_bfd = sdata; in spu_elf_new_section_hook()
246 return _bfd_elf_new_section_hook (abfd, sec); in spu_elf_new_section_hook()
278 asection *sec = shdr->bfd_section; in spu_elf_object_p() local
279 spu_elf_section_data (sec)->u.o.ovl_index = num_ovl; in spu_elf_object_p()
280 spu_elf_section_data (sec)->u.o.ovl_buf = num_buf; in spu_elf_object_p()
388 asection *sec; member
1197 asection *sec; in build_stub() local
1243 sec = htab->stub_sec[ovl]; in build_stub()
[all …]
Delf32-epiphany.c179 epiphany_elf_relax_section (bfd *abfd, asection *sec, in epiphany_elf_relax_section() argument
203 first_section = sec; in epiphany_elf_relax_section()
206 if (first_section == sec) in epiphany_elf_relax_section()
216 || (sec->flags & SEC_RELOC) == 0 in epiphany_elf_relax_section()
217 || sec->reloc_count == 0 in epiphany_elf_relax_section()
218 || (sec->flags & SEC_CODE) == 0) in epiphany_elf_relax_section()
223 internal_relocs = _bfd_elf_link_read_relocs (abfd, sec, NULL, NULL, in epiphany_elf_relax_section()
244 if (elf_section_data (sec)->this_hdr.contents != NULL) in epiphany_elf_relax_section()
245 contents = elf_section_data (sec)->this_hdr.contents; in epiphany_elf_relax_section()
249 if (!bfd_malloc_and_get_section (abfd, sec, &contents)) in epiphany_elf_relax_section()
[all …]
Delf-eh-frame.c234 && (c1->cie_inf->u.cie.u.sec->output_section in cie_eq()
235 == c2->cie_inf->u.cie.u.sec->output_section) in cie_eq()
269 h = iterative_hash_object (c->cie_inf->u.cie.u.sec->output_section, h); in cie_compute_hash()
461 asection *sec, struct elf_reloc_cookie *cookie) in _bfd_elf_parse_eh_frame() argument
486 if (sec->size == 0 in _bfd_elf_parse_eh_frame()
487 || sec->sec_info_type != SEC_INFO_TYPE_NONE) in _bfd_elf_parse_eh_frame()
493 if (bfd_is_abs_section (sec->output_section)) in _bfd_elf_parse_eh_frame()
502 REQUIRE (bfd_malloc_and_get_section (abfd, sec, &ehbuf)); in _bfd_elf_parse_eh_frame()
504 if (sec->size >= 4 in _bfd_elf_parse_eh_frame()
515 REQUIRE (sec->size == (unsigned int) sec->size); in _bfd_elf_parse_eh_frame()
[all …]
Delf32-crx.c438 asection *sec ATTRIBUTE_UNUSED, in crx_elf_final_link_relocate()
588 asection *sec, bfd_vma addr, int count) in elf32_crx_relax_delete_bytes() argument
602 sec_shndx = _bfd_elf_section_from_bfd_section (abfd, sec); in elf32_crx_relax_delete_bytes()
604 contents = elf_section_data (sec)->this_hdr.contents; in elf32_crx_relax_delete_bytes()
606 toaddr = sec->size; in elf32_crx_relax_delete_bytes()
608 irel = elf_section_data (sec)->relocs; in elf32_crx_relax_delete_bytes()
609 irelend = irel + sec->reloc_count; in elf32_crx_relax_delete_bytes()
614 sec->size -= count; in elf32_crx_relax_delete_bytes()
617 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_crx_relax_delete_bytes()
636 for (irel = elf_section_data (sec)->relocs; irel < irelend; irel++) in elf32_crx_relax_delete_bytes()
[all …]
Delf64-mmix.c86 #define mmix_elf_section_data(sec) \ argument
87 ((struct _mmix_elf_section_data *) elf_section_data (sec))
829 mmix_elf_new_section_hook (bfd *abfd, asection *sec) in mmix_elf_new_section_hook() argument
831 if (!sec->used_by_bfd) in mmix_elf_new_section_hook()
839 sec->used_by_bfd = sdata; in mmix_elf_new_section_hook()
842 return _bfd_elf_new_section_hook (abfd, sec); in mmix_elf_new_section_hook()
1379 asection *sec; in mmix_elf_relocate_section() local
1398 sec = NULL; in mmix_elf_relocate_section()
1403 sec = local_sections [r_symndx]; in mmix_elf_relocate_section()
1404 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in mmix_elf_relocate_section()
[all …]
Delf32-h8300.c448 asection *sec; in elf32_h8_relocate_section() local
462 sec = NULL; in elf32_h8_relocate_section()
466 sec = local_sections[r_symndx]; in elf32_h8_relocate_section()
467 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in elf32_h8_relocate_section()
475 h, sec, relocation, in elf32_h8_relocate_section()
479 if (sec != NULL && discarded_section (sec)) in elf32_h8_relocate_section()
490 info, sec, h == NULL); in elf32_h8_relocate_section()
504 name = bfd_section_name (input_bfd, sec); in elf32_h8_relocate_section()
693 elf32_h8_relax_section (bfd *abfd, asection *sec, in elf32_h8_relax_section() argument
711 || (sec->flags & SEC_RELOC) == 0 in elf32_h8_relax_section()
[all …]
Delf32-m68hc11.c562 m68hc11_relax_group (bfd *abfd, asection *sec, bfd_byte *contents, in m68hc11_relax_group() argument
650 m68hc11_elf_relax_delete_bytes (abfd, sec, start_offset, in m68hc11_relax_group()
664 m68hc11_elf_relax_delete_bytes (abfd, sec, ldx_offset, ldx_size); in m68hc11_relax_group()
674 m68hc11_elf_relax_section (bfd *abfd, asection *sec, in m68hc11_elf_relax_section() argument
696 || (sec->flags & SEC_RELOC) == 0 in m68hc11_elf_relax_section()
697 || sec->reloc_count == 0 in m68hc11_elf_relax_section()
698 || (sec->flags & SEC_CODE) == 0) in m68hc11_elf_relax_section()
705 (abfd, sec, NULL, (Elf_Internal_Rela *) NULL, in m68hc11_elf_relax_section()
714 qsort (internal_relocs, sec->reloc_count, sizeof (Elf_Internal_Rela), in m68hc11_elf_relax_section()
718 irelend = internal_relocs + sec->reloc_count; in m68hc11_elf_relax_section()
[all …]
Delf-nacl.c135 asection *sec; in nacl_modify_segment_map() local
144 sec = bfd_zalloc (abfd, sizeof *sec); in nacl_modify_segment_map()
145 if (sec == NULL) in nacl_modify_segment_map()
150 sec->vma = end; in nacl_modify_segment_map()
151 sec->lma = lastsec->lma + lastsec->size; in nacl_modify_segment_map()
152 sec->size = bed->minpagesize - (end % bed->minpagesize); in nacl_modify_segment_map()
153 sec->flags = (SEC_ALLOC | SEC_LOAD in nacl_modify_segment_map()
155 sec->used_by_bfd = secdata; in nacl_modify_segment_map()
159 secdata->this_hdr.sh_addr = sec->vma; in nacl_modify_segment_map()
160 secdata->this_hdr.sh_size = sec->size; in nacl_modify_segment_map()
[all …]
Delf32-microblaze.c682 asection *sec; member
938 asection *sec; in microblaze_elf_relocate_section() local
966 sec = NULL; in microblaze_elf_relocate_section()
979 sec = local_sections[r_symndx]; in microblaze_elf_relocate_section()
980 addend += sec->output_offset + sym->st_value; in microblaze_elf_relocate_section()
1006 sec = NULL; in microblaze_elf_relocate_section()
1013 sec = local_sections[r_symndx]; in microblaze_elf_relocate_section()
1014 if (sec == 0) in microblaze_elf_relocate_section()
1017 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in microblaze_elf_relocate_section()
1030 h, sec, relocation, in microblaze_elf_relocate_section()
[all …]
Dcoff-sh.c418 asection * sec, in coff_sh_rtype_to_howto() argument
431 *addendp += sec->vma; in coff_sh_rtype_to_howto()
458 *addendp -= pe_data (sec->output_section->owner)->pe_opthdr.ImageBase; in coff_sh_rtype_to_howto()
705 asection *sec, in sh_relax_section() argument
717 || (sec->flags & SEC_RELOC) == 0 in sh_relax_section()
718 || sec->reloc_count == 0) in sh_relax_section()
721 if (coff_section_data (abfd, sec) == NULL) in sh_relax_section()
724 sec->used_by_bfd = bfd_zalloc (abfd, amt); in sh_relax_section()
725 if (sec->used_by_bfd == NULL) in sh_relax_section()
730 (abfd, sec, link_info->keep_memory, in sh_relax_section()
[all …]
Delf32-sh64-com.c188 sh64_get_contents_type (asection *sec, bfd_vma addr, sh64_elf_crange *rangep) in sh64_get_contents_type() argument
193 if (bfd_get_flavour (sec->owner) == bfd_target_elf_flavour in sh64_get_contents_type()
194 && elf_elfheader (sec->owner)->e_type == ET_EXEC) in sh64_get_contents_type()
196 rangep->cr_addr = bfd_get_section_vma (sec->owner, sec); in sh64_get_contents_type()
197 rangep->cr_size = sec->size; in sh64_get_contents_type()
205 if ((elf_section_data (sec)->this_hdr.sh_flags in sh64_get_contents_type()
209 = ((bfd_get_section_flags (sec->owner, sec) & SEC_CODE) != 0 in sh64_get_contents_type()
216 if ((elf_section_data (sec)->this_hdr.sh_flags in sh64_get_contents_type()
224 cranges = bfd_get_section_by_name (sec->owner, SH64_CRANGES_SECTION_NAME); in sh64_get_contents_type()
241 sh64_address_is_shmedia (asection *sec, bfd_vma addr) in sh64_address_is_shmedia() argument
[all …]
Dbinary.c60 asection *sec; in binary_object_p() local
80 sec = bfd_make_section_with_flags (abfd, ".data", flags); in binary_object_p()
81 if (sec == NULL) in binary_object_p()
83 sec->vma = 0; in binary_object_p()
84 sec->size = statbuf.st_size; in binary_object_p()
85 sec->filepos = 0; in binary_object_p()
87 abfd->tdata.any = (void *) sec; in binary_object_p()
151 asection *sec = (asection *) abfd->tdata.any; in binary_canonicalize_symtab() local
165 syms[0].section = sec; in binary_canonicalize_symtab()
171 syms[1].value = sec->size; in binary_canonicalize_symtab()
[all …]
Di386msdos.c49 asection *sec; in msdos_write_object_contents() local
52 for (sec = abfd->sections; sec != (asection *) NULL; sec = sec->next) in msdos_write_object_contents()
54 if (sec->size == 0) in msdos_write_object_contents()
56 if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC) in msdos_write_object_contents()
58 bfd_vma sec_vma = bfd_get_section_vma (abfd, sec) + sec->size; in msdos_write_object_contents()
62 if (bfd_get_section_flags (abfd, sec) & SEC_LOAD) in msdos_write_object_contents()
65 + bfd_get_section_vma (abfd, sec) in msdos_write_object_contents()
66 + sec->size); in msdos_write_object_contents()
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/all/
Dcofftag.d7 \[ 0\]\(sec -2\)\(fl 0x00\)\(ty 0\)\(scl 103\) \(nx 1\) 0x0+0000 foo.c
9 \[ 2\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 6\) \(nx 0\) 0x0+0000 gcc2_compiled.
10 \[ 3\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 6\) \(nx 0\) 0x0+0000 ___gnu_compiled_c
11 \[ 4\]\(sec -2\)\(fl 0x00\)\(ty a\)\(scl 15\) \(nx 1\) 0x0+0000 _token
13 \[ 6\]\(sec -(1|2)\)\(fl 0x00\)\(ty b\)\(scl 16\) \(nx 0\) 0x0+0000 _operator
14 \[ 7\]\(sec -(1|2)\)\(fl 0x00\)\(ty b\)\(scl 16\) \(nx 0\) 0x0+0001 _flags
15 \[ 8\]\(sec -(1|2)\)\(fl 0x00\)\(ty 0\)\(scl 102\) \(nx 1\) 0x0+0004 .eos
17 \[ 10\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 3\) \(nx 1\) 0x[0-9a-f]+ .text
19 \[ 12\]\(sec 2\)\(fl 0x00\)\(ty 0\)\(scl 3\) \(nx 1\) 0x[0-9a-f]+ .data
21 \[ 14\]\(sec 3\)\(fl 0x00\)\(ty 0\)\(scl 3\) \(nx 1\) 0x[0-9a-f]+ .bss
[all …]
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/ppc/
Dtest1xcoff32.d20 \[ 0\]\(sec -2\)\(fl 0x00\)\(ty 0\)\(scl 103\) \(nx 1\) 0x00000000 fake
22 \[ 2\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000000 \.crazy_table
24 \[ 4\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000008
26 \[ 6\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000008 reference_csect_relative_symb…
28 \[ 8\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000018 dubious_references_to_default…
30 \[ 10\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000028 reference_via_toc
32 \[ 12\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000040 subtract_symbols
34 \[ 14\]\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x0000005c load_addresses
36 \[ 16\]\(sec 2\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000068
38 \[ 18\]\(sec 2\)\(fl 0x00\)\(ty 0\)\(scl 107\) \(nx 1\) 0x00000074 TOC
[all …]
/toolchain/binutils/binutils-2.25/gas/config/
Dobj-macho.c138 obj_mach_o_get_section_names (char *seg, char *sec, in obj_mach_o_get_section_names() argument
152 memset (sec, 0, secl); in obj_mach_o_get_section_names()
153 collect_16char_name (sec, "section", 0); in obj_mach_o_get_section_names()
176 segT sec; in obj_mach_o_make_or_get_sect() local
237 sec = subseg_new (name, 0); in obj_mach_o_make_or_get_sect()
239 oldflags = bfd_get_section_flags (stdoutput, sec); in obj_mach_o_make_or_get_sect()
240 msect = bfd_mach_o_get_mach_o_section (sec); in obj_mach_o_make_or_get_sect()
257 if (! bfd_set_section_flags (stdoutput, sec, flags)) in obj_mach_o_make_or_get_sect()
259 bfd_section_name (stdoutput, sec), in obj_mach_o_make_or_get_sect()
270 seg_info (sec)->bss = 1; in obj_mach_o_make_or_get_sect()
[all …]
/toolchain/binutils/binutils-2.25/gas/
Dsubsegs.c210 section_symbol (segT sec) in section_symbol() argument
212 segment_info_type *seginfo = seg_info (sec); in section_symbol()
227 s = symbol_create (sec->symbol->name, sec, 0, &zero_address_frag); in section_symbol()
232 s = symbol_find (sec->symbol->name); in section_symbol()
236 || ((seg = S_GET_SEGMENT (s)) != sec in section_symbol()
238 s = symbol_new (sec->symbol->name, sec, 0, &zero_address_frag); in section_symbol()
241 S_SET_SEGMENT (s, sec); in section_symbol()
249 if (obj_sec_sym_ok_for_reloc (sec)) in section_symbol()
250 symbol_set_bfdsym (s, sec->symbol); in section_symbol()
261 subseg_text_p (segT sec) in subseg_text_p() argument
[all …]

12345678910>>...15