Home
last modified time | relevance | path

Searched refs:newsect (Results 1 – 25 of 36) sorted by relevance

12

/openbsd/src/gnu/usr.bin/binutils/bfd/
Dsection.c708 bfd_section_init (bfd *abfd, asection *newsect) in bfd_section_init() argument
712 newsect->id = section_id; in bfd_section_init()
713 newsect->index = abfd->section_count; in bfd_section_init()
714 newsect->owner = abfd; in bfd_section_init()
719 newsect->symbol = bfd_make_empty_symbol (abfd); in bfd_section_init()
720 if (newsect->symbol == NULL) in bfd_section_init()
723 newsect->symbol->name = newsect->name; in bfd_section_init()
724 newsect->symbol->value = 0; in bfd_section_init()
725 newsect->symbol->section = newsect; in bfd_section_init()
726 newsect->symbol->flags = BSF_SECTION_SYM; in bfd_section_init()
[all …]
Dlynx-core.c95 asection *newsect; local
149 newsect = make_bfd_asection (abfd, ".stack",
154 if (!newsect)
157 newsect = make_bfd_asection (abfd, ".data",
172 if (!newsect)
182 newsect = make_bfd_asection (abfd, ".reg",
187 if (!newsect)
195 newsect = make_bfd_asection (abfd, secname,
200 if (!newsect)
Doasys.c828 oasys_new_section_hook (abfd, newsect) in oasys_new_section_hook() argument
830 asection *newsect;
832 newsect->used_by_bfd = (PTR)
834 if (!newsect->used_by_bfd)
836 oasys_per_section (newsect)->data = (bfd_byte *) NULL;
837 oasys_per_section (newsect)->section = newsect;
838 oasys_per_section (newsect)->offset = 0;
839 oasys_per_section (newsect)->initialized = FALSE;
840 newsect->alignment_power = 1;
843 sscanf (newsect->name, "%u", &newsect->target_index);
Delf.c457 setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) in setup_group() argument
579 elf_group_name (newsect) = elf_group_name (s); in setup_group()
580 elf_next_in_group (newsect) = elf_next_in_group (s); in setup_group()
581 elf_next_in_group (s) = newsect; in setup_group()
590 elf_group_name (newsect) = gname; in setup_group()
593 elf_next_in_group (newsect) = newsect; in setup_group()
599 elf_next_in_group (shdr->bfd_section) = newsect; in setup_group()
607 if (elf_group_name (newsect) == NULL) in setup_group()
610 bfd_archive_filename (abfd), newsect->name); in setup_group()
640 asection *newsect; in _bfd_elf_make_section_from_shdr() local
[all …]
Dnlmcode.h232 asection *newsect; local
234 newsect = bfd_make_section (abfd, name);
235 if (newsect == NULL)
238 newsect->vma = 0; /* NLM's are relocatable. */
239 newsect->_raw_size = size;
240 newsect->filepos = offset;
241 newsect->flags = flags;
242 newsect->alignment_power = bfd_log2 ((bfd_vma) 0); /* FIXME */
Delf32-i370.c393 asection *newsect; local
399 newsect = hdr->bfd_section;
400 flags = bfd_get_section_flags (abfd, newsect);
407 bfd_set_section_flags (abfd, newsect, flags);
Dpdp11.c1389 NAME(aout,new_section_hook) (abfd, newsect)
1391 asection *newsect; variable
1394 newsect->alignment_power = bfd_get_arch_info(abfd)->section_align_power;
1400 && ! strcmp (newsect->name, ".text"))
1402 obj_textsec(abfd)= newsect;
1403 newsect->target_index = N_TEXT;
1408 && ! strcmp (newsect->name, ".data"))
1410 obj_datasec (abfd) = newsect;
1411 newsect->target_index = N_DATA;
1416 && !strcmp (newsect->name, ".bss"))
[all …]
Daoutx.h1233 NAME(aout,new_section_hook) (abfd, newsect)
1235 asection *newsect; variable
1238 newsect->alignment_power = bfd_get_arch_info (abfd)->section_align_power;
1242 if (obj_textsec (abfd) == NULL && !strcmp (newsect->name, ".text"))
1244 obj_textsec (abfd)= newsect;
1245 newsect->target_index = N_TEXT;
1249 if (obj_datasec (abfd) == NULL && !strcmp (newsect->name, ".data"))
1251 obj_datasec (abfd) = newsect;
1252 newsect->target_index = N_DATA;
1256 if (obj_bsssec (abfd) == NULL && !strcmp (newsect->name, ".bss"))
[all …]
Dieee.c2171 ieee_new_section_hook (abfd, newsect) in ieee_new_section_hook() argument
2173 asection *newsect;
2175 newsect->used_by_bfd
2177 if (!newsect->used_by_bfd)
2179 ieee_per_section (newsect)->data = (bfd_byte *) NULL;
2180 ieee_per_section (newsect)->section = newsect;
Dmmo.c2116 mmo_new_section_hook (abfd, newsect) in mmo_new_section_hook() argument
2118 asection *newsect;
2122 newsect->used_by_bfd =
2125 if (!newsect->used_by_bfd)
2129 newsect->alignment_power = 2;
Dsom.c5080 som_new_section_hook (abfd, newsect) in som_new_section_hook() argument
5082 asection *newsect;
5085 newsect->used_by_bfd = (PTR) bfd_zalloc (abfd, amt);
5086 if (!newsect->used_by_bfd)
5088 newsect->alignment_power = 3;
Delf32-ppc.c2291 asection *newsect; in ppc_elf_section_from_shdr() local
2297 newsect = hdr->bfd_section; in ppc_elf_section_from_shdr()
2298 flags = bfd_get_section_flags (abfd, newsect); in ppc_elf_section_from_shdr()
2305 bfd_set_section_flags (abfd, newsect, flags); in ppc_elf_section_from_shdr()
/openbsd/src/gnu/usr.bin/binutils-2.17/bfd/
Dsection.c749 bfd_section_init (bfd *abfd, asection *newsect) in bfd_section_init() argument
753 newsect->id = section_id; in bfd_section_init()
754 newsect->index = abfd->section_count; in bfd_section_init()
755 newsect->owner = abfd; in bfd_section_init()
760 newsect->symbol = bfd_make_empty_symbol (abfd); in bfd_section_init()
761 if (newsect->symbol == NULL) in bfd_section_init()
764 newsect->symbol->name = newsect->name; in bfd_section_init()
765 newsect->symbol->value = 0; in bfd_section_init()
766 newsect->symbol->section = newsect; in bfd_section_init()
767 newsect->symbol->flags = BSF_SECTION_SYM; in bfd_section_init()
[all …]
Dlynx-core.c98 asection *newsect; local
152 newsect = make_bfd_asection (abfd, ".stack",
157 if (!newsect)
160 newsect = make_bfd_asection (abfd, ".data",
175 if (!newsect)
185 newsect = make_bfd_asection (abfd, ".reg",
190 if (!newsect)
198 newsect = make_bfd_asection (abfd, secname,
203 if (!newsect)
Doasys.c686 oasys_new_section_hook (bfd *abfd, asection *newsect) in oasys_new_section_hook() argument
688 newsect->used_by_bfd = bfd_alloc (abfd, (bfd_size_type) sizeof (oasys_per_section_type)); in oasys_new_section_hook()
689 if (!newsect->used_by_bfd) in oasys_new_section_hook()
691 oasys_per_section (newsect)->data = NULL; in oasys_new_section_hook()
692 oasys_per_section (newsect)->section = newsect; in oasys_new_section_hook()
693 oasys_per_section (newsect)->offset = 0; in oasys_new_section_hook()
694 oasys_per_section (newsect)->initialized = FALSE; in oasys_new_section_hook()
695 newsect->alignment_power = 1; in oasys_new_section_hook()
698 sscanf (newsect->name, "%u", &newsect->target_index); in oasys_new_section_hook()
Delf.c481 setup_group (bfd *abfd, Elf_Internal_Shdr *hdr, asection *newsect) in setup_group() argument
607 elf_group_name (newsect) = elf_group_name (s); in setup_group()
608 elf_next_in_group (newsect) = elf_next_in_group (s); in setup_group()
609 elf_next_in_group (s) = newsect; in setup_group()
618 elf_group_name (newsect) = gname; in setup_group()
621 elf_next_in_group (newsect) = newsect; in setup_group()
627 elf_next_in_group (shdr->bfd_section) = newsect; in setup_group()
635 if (elf_group_name (newsect) == NULL) in setup_group()
638 abfd, newsect); in setup_group()
747 asection *newsect; in _bfd_elf_make_section_from_shdr() local
[all …]
Dnlmcode.h139 asection *newsect; in add_bfd_section() local
141 newsect = bfd_make_section (abfd, name); in add_bfd_section()
142 if (newsect == NULL) in add_bfd_section()
145 newsect->vma = 0; /* NLM's are relocatable. */ in add_bfd_section()
146 newsect->size = size; in add_bfd_section()
147 newsect->filepos = offset; in add_bfd_section()
148 newsect->flags = flags; in add_bfd_section()
149 newsect->alignment_power = bfd_log2 ((bfd_vma) 0); /* FIXME */ in add_bfd_section()
Delf32-i370.c354 asection *newsect; in i370_elf_section_from_shdr() local
360 newsect = hdr->bfd_section; in i370_elf_section_from_shdr()
361 flags = bfd_get_section_flags (abfd, newsect); in i370_elf_section_from_shdr()
368 bfd_set_section_flags (abfd, newsect, flags); in i370_elf_section_from_shdr()
Dpdp11.c1106 NAME (aout, new_section_hook) (bfd *abfd, asection *newsect) in NAME()
1109 newsect->alignment_power = bfd_get_arch_info(abfd)->section_align_power; in NAME()
1114 && ! strcmp (newsect->name, ".text")) in NAME()
1116 obj_textsec(abfd)= newsect; in NAME()
1117 newsect->target_index = N_TEXT; in NAME()
1122 && ! strcmp (newsect->name, ".data")) in NAME()
1124 obj_datasec (abfd) = newsect; in NAME()
1125 newsect->target_index = N_DATA; in NAME()
1130 && !strcmp (newsect->name, ".bss")) in NAME()
1132 obj_bsssec (abfd) = newsect; in NAME()
[all …]
Daoutx.h1185 NAME (aout, new_section_hook) (bfd *abfd, asection *newsect) in NAME()
1188 newsect->alignment_power = bfd_get_arch_info (abfd)->section_align_power; in NAME()
1192 if (obj_textsec (abfd) == NULL && !strcmp (newsect->name, ".text")) in NAME()
1194 obj_textsec (abfd)= newsect; in NAME()
1195 newsect->target_index = N_TEXT; in NAME()
1199 if (obj_datasec (abfd) == NULL && !strcmp (newsect->name, ".data")) in NAME()
1201 obj_datasec (abfd) = newsect; in NAME()
1202 newsect->target_index = N_DATA; in NAME()
1206 if (obj_bsssec (abfd) == NULL && !strcmp (newsect->name, ".bss")) in NAME()
1208 obj_bsssec (abfd) = newsect; in NAME()
[all …]
Dieee.c2015 ieee_new_section_hook (bfd *abfd, asection *newsect) in ieee_new_section_hook() argument
2017 newsect->used_by_bfd = bfd_alloc (abfd, (bfd_size_type) sizeof (ieee_per_section_type)); in ieee_new_section_hook()
2018 if (!newsect->used_by_bfd) in ieee_new_section_hook()
2020 ieee_per_section (newsect)->data = NULL; in ieee_new_section_hook()
2021 ieee_per_section (newsect)->section = newsect; in ieee_new_section_hook()
Dmmo.c2010 mmo_new_section_hook (bfd *abfd ATTRIBUTE_UNUSED, asection *newsect) in mmo_new_section_hook() argument
2014 newsect->used_by_bfd = in mmo_new_section_hook()
2017 if (!newsect->used_by_bfd) in mmo_new_section_hook()
2021 newsect->alignment_power = 2; in mmo_new_section_hook()
Delf64-alpha.c1093 asection *newsect; in elf64_alpha_section_from_shdr() local
1112 newsect = hdr->bfd_section; in elf64_alpha_section_from_shdr()
1116 if (! bfd_set_section_flags (abfd, newsect, in elf64_alpha_section_from_shdr()
1117 (bfd_get_section_flags (abfd, newsect) in elf64_alpha_section_from_shdr()
/openbsd/src/gnu/usr.bin/binutils-2.17/bfd/doc/
Daoutx.texi208 asection *newsect);
/openbsd/src/gnu/usr.bin/binutils/bfd/doc/
Daoutx.texi206 asection *newsect));

12