Searched refs:msz (Results 1 - 10 of 10) sorted by relevance

/gem5/ext/libelf/
H A Dgelf_dyn.c41 size_t msz; local
64 msz = _libelf_msize(ELF_T_DYN, ec, e->e_version);
66 assert(msz > 0);
68 if (msz * ndx >= d->d_size) {
97 size_t msz; local
120 msz = _libelf_msize(ELF_T_DYN, ec, e->e_version);
121 assert(msz > 0);
123 if (msz * ndx >= d->d_size) {
H A Dgelf_rel.c42 size_t msz; local
65 msz = _libelf_msize(ELF_T_REL, ec, e->e_version);
67 assert(msz > 0);
69 if (msz * ndx >= d->d_size) {
98 size_t msz; local
121 msz = _libelf_msize(ELF_T_REL, ec, e->e_version);
122 assert(msz > 0);
124 if (msz * ndx >= d->d_size) {
H A Dgelf_rela.c42 size_t msz; local
65 msz = _libelf_msize(ELF_T_RELA, ec, e->e_version);
67 assert(msz > 0);
69 if (msz * ndx >= d->d_size) {
99 size_t msz; local
122 msz = _libelf_msize(ELF_T_RELA, ec, e->e_version);
123 assert(msz > 0);
125 if (msz * ndx >= d->d_size) {
H A Dgelf_symshndx.c41 size_t msz; local
68 msz = _libelf_msize(ELF_T_WORD, ec, e->e_version);
70 assert(msz > 0);
72 if (msz * ndx >= id->d_size) {
89 size_t msz; local
115 msz = _libelf_msize(ELF_T_WORD, ec, e->e_version);
116 assert(msz > 0);
118 if (msz * ndx >= id->d_size) {
H A Dlibelf_xlate.c48 size_t cnt, dsz, fsz, msz; local
83 msz = _libelf_msize(src->d_type, elfclass, src->d_version);
85 assert(msz > 0);
87 if (src->d_size % (direction == ELF_TOMEMORY ? fsz : msz)) {
99 dsz = cnt * msz;
101 cnt = src->d_size / msz;
134 fsz == msz)
H A Dgelf_sym.c42 size_t msz; local
65 msz = _libelf_msize(ELF_T_SYM, ec, e->e_version);
67 assert(msz > 0);
69 if (msz * ndx >= d->d_size) {
103 size_t msz; local
126 msz = _libelf_msize(ELF_T_SYM, ec, e->e_version);
127 assert(msz > 0);
129 if (msz * ndx >= d->d_size) {
H A Dlibelf_phdr.c40 size_t fsz, msz; local
87 msz = _libelf_msize(ELF_T_PHDR, ec, EV_CURRENT);
89 assert(msz > 0);
91 if ((phdr = calloc(phnum, msz)) == NULL) {
113 size_t msz; local
129 msz = _libelf_msize(ELF_T_PHDR, ec, e->e_version);
131 assert(msz > 0);
134 if (count > 0 && (newphdr = calloc(count, msz)) == NULL) {
H A Delf_data.c41 size_t fsz, msz, count; local
101 msz = _libelf_msize(elftype, elfclass, e->e_version);
103 assert(msz > 0);
105 if ((dst = malloc(msz*count)) == NULL) {
116 d->d_size = msz * count;
H A Dlibelf_ehdr.c102 size_t fsz, msz; local
143 msz = _libelf_msize(ELF_T_EHDR, ec, EV_CURRENT);
145 assert(msz > 0);
147 if ((ehdr = calloc((size_t) 1, msz)) == NULL) {
H A Delf_update.c505 size_t fsz, msz, nobjects; local
526 msz = _libelf_msize(elftype, ec, e->e_version);
583 assert(d->d_size % msz == 0);
585 nobjects = d->d_size / msz;
624 size_t fsz, msz, phnum, shnum; local
664 msz = _libelf_msize(ELF_T_EHDR, ec, e->e_version);
670 src.d_size = msz;

Completed in 13 milliseconds