Searched refs:scn (Results 1 - 13 of 13) sorted by relevance

/gem5/ext/libelf/
H A Dlibelf_extended.c49 Elf_Scn *scn; local
52 if ((scn = _libelf_getscn0(e)) == NULL)
55 assert(scn->s_ndx == SHN_UNDEF);
58 scn->s_shdr.s_shdr32.sh_size = shnum;
60 scn->s_shdr.s_shdr64.sh_size = shnum;
62 (void) elf_flagshdr(scn, ELF_C_SET, ELF_F_DIRTY);
79 Elf_Scn *scn; local
82 if ((scn = _libelf_getscn0(e)) == NULL)
85 assert(scn->s_ndx == SHN_UNDEF);
88 scn
108 Elf_Scn *scn; local
[all...]
H A Delf_end.c40 Elf_Scn *scn, *tscn; local
66 STAILQ_FOREACH_SAFE(scn, &e->e_u.e_elf.e_scn, s_next, tscn)
67 scn = _libelf_release_scn(scn);
H A Dgelf_dyn.c38 Elf_Scn *scn; local
45 (scn = d->d_scn) == NULL ||
46 (e = scn->s_elf) == NULL) {
55 sh_type = scn->s_shdr.s_shdr32.sh_type;
57 sh_type = scn->s_shdr.s_shdr64.sh_type;
94 Elf_Scn *scn; local
101 (scn = d->d_scn) == NULL ||
102 (e = scn->s_elf) == NULL) {
111 sh_type = scn->s_shdr.s_shdr32.sh_type;
113 sh_type = scn
[all...]
H A Dgelf_rel.c39 Elf_Scn *scn; local
46 (scn = d->d_scn) == NULL ||
47 (e = scn->s_elf) == NULL) {
56 sh_type = scn->s_shdr.s_shdr32.sh_type;
58 sh_type = scn->s_shdr.s_shdr64.sh_type;
95 Elf_Scn *scn; local
102 (scn = d->d_scn) == NULL ||
103 (e = scn->s_elf) == NULL) {
112 sh_type = scn->s_shdr.s_shdr32.sh_type;
114 sh_type = scn
[all...]
H A Dgelf_rela.c39 Elf_Scn *scn; local
46 (scn = d->d_scn) == NULL ||
47 (e = scn->s_elf) == NULL) {
56 sh_type = scn->s_shdr.s_shdr32.sh_type;
58 sh_type = scn->s_shdr.s_shdr64.sh_type;
96 Elf_Scn *scn; local
103 (scn = d->d_scn) == NULL ||
104 (e = scn->s_elf) == NULL) {
113 sh_type = scn->s_shdr.s_shdr32.sh_type;
115 sh_type = scn
[all...]
H A Dgelf_symshndx.c40 Elf_Scn *scn; local
47 if (id == NULL || (scn = id->d_scn) == NULL ||
48 (e = scn->s_elf) == NULL || (e != d->d_scn->s_elf) ||
58 sh_type = scn->s_shdr.s_shdr32.sh_type;
60 sh_type = scn->s_shdr.s_shdr64.sh_type;
88 Elf_Scn *scn; local
95 if (id == NULL || (scn = id->d_scn) == NULL ||
96 (e = scn->s_elf) == NULL || (e != d->d_scn->s_elf)) {
105 sh_type = scn->s_shdr.s_shdr32.sh_type;
107 sh_type = scn
[all...]
H A Delf_scn.c49 Elf_Scn *scn; local
100 if ((scn = _libelf_allocate_scn(e, i)) == NULL)
103 (*xlator)((char *) &scn->s_shdr, src, (size_t) 1, swapbytes);
106 scn->s_offset = scn->s_rawoff =
107 scn->s_shdr.s_shdr32.sh_offset;
108 scn->s_size = scn->s_shdr.s_shdr32.sh_size;
110 scn->s_offset = scn
166 Elf_Scn *scn; local
[all...]
H A Dlibelf_checksum.c47 Elf_Scn *scn; local
77 if ((scn = elf_getscn(e, shn)) == NULL)
79 if (gelf_getshdr(scn, &shdr) == NULL)
87 while ((d = elf_rawdata(scn, d)) != NULL)
H A Dgelf_sym.c39 Elf_Scn *scn; local
46 (scn = d->d_scn) == NULL ||
47 (e = scn->s_elf) == NULL) {
56 sh_type = scn->s_shdr.s_shdr32.sh_type;
58 sh_type = scn->s_shdr.s_shdr64.sh_type;
100 Elf_Scn *scn; local
107 (scn = d->d_scn) == NULL ||
108 (e = scn->s_elf) == NULL) {
117 sh_type = scn->s_shdr.s_shdr32.sh_type;
119 sh_type = scn
[all...]
H A Dgelf_shdr.c88 gelf_update_shdr(Elf_Scn *scn, GElf_Shdr *s) argument
95 if (s == NULL || scn == NULL || (e = scn->s_elf) == NULL ||
108 scn->s_shdr.s_shdr64 = *s;
112 sh32 = &scn->s_shdr.s_shdr32;
125 (void) elf_flagscn(scn, ELF_C_SET, ELF_F_DIRTY);
H A Delf_flag.c36 Elf_Scn *scn; local
42 if ((c != ELF_C_SET && c != ELF_C_CLR) || (scn = d->d_scn) == NULL ||
43 (e = scn->s_elf) == NULL || e->e_kind != ELF_K_ELF ||
50 r = scn->s_flags |= flags;
52 r = scn->s_flags &= ~flags;
H A Dlibelf_ehdr.c44 Elf_Scn *scn; local
59 if ((scn = _libelf_allocate_scn(e, (size_t) 0)) == NULL)
63 (*xlator)((char *) &scn->s_shdr, e->e_rawfile + shoff, (size_t) 1,
66 #define GET_SHDR_MEMBER(M) ((ec == ELFCLASS32) ? scn->s_shdr.s_shdr32.M : \
67 scn->s_shdr.s_shdr64.M)
H A Delf_update.c629 Elf_Scn *scn, *tscn; local
727 STAILQ_FOREACH(scn, &e->e_u.e_elf.e_scn, s_next)
728 if ((rc = _libelf_write_scn(e, newfile, scn, rc)) < 0)
752 STAILQ_FOREACH(scn, &e->e_u.e_elf.e_scn, s_next) {
754 src.d_buf = &scn->s_shdr.s_shdr32;
756 src.d_buf = &scn->s_shdr.s_shdr64;
807 STAILQ_FOREACH_SAFE(scn, &e->e_u.e_elf.e_scn, s_next, tscn)
808 _libelf_release_scn(scn);

Completed in 15 milliseconds