Home | History | Annotate | Download | only in macho

Lines Matching refs:msd

300     /*@dependent@ */ macho_section_data *msd;
533 info->msd->extreloc = 1; /* section has external relocations */
540 /*@null@*/ macho_section_data *msd;
541 msd = yasm_section_get_data(sym_sect, &macho_section_data_cb);
542 assert(msd != NULL);
543 intn_plus += msd->vmoff + yasm_bc_next_offset(sym_precbc);
547 info->msd->nreloc++;
629 /*@dependent@ *//*@null@ */ macho_section_data *msd;
632 msd = yasm_section_get_data(sect, &macho_section_data_cb);
633 assert(msd != NULL);
635 if (!(msd->flags & S_ZEROFILL)) {
638 info->msd = msd;
649 /*@dependent@*/ /*@null@*/ macho_section_data *msd;
671 (msd = yasm_section_get_data(dsect, &macho_section_data_cb)))
672 symnum = msd->scnum+1;
717 /*@dependent@*/ /*@null@*/ macho_section_data *msd;
719 msd = yasm_section_get_data(sect, &macho_section_data_cb);
720 if (msd) {
721 if (msd->sym == sym)
734 /*@dependent@*/ /*@null@*/ macho_section_data *msd;
739 msd = yasm_section_get_data(sect, &macho_section_data_cb);
740 assert(msd != NULL);
745 strncpy((char *)localbuf, msd->sectname, 16);
748 strncpy((char *)localbuf, msd->segname, 16);
751 YASM_WRITE_32_L(localbuf, msd->vmoff); /* address in memory */
754 YASM_WRITE_32_L(localbuf, msd->size); /* size in memory */
759 if ((msd->flags & SECTION_TYPE) != S_ZEROFILL) {
760 YASM_WRITE_32_L(localbuf, msd->offset);
762 if (msd->nreloc) {
763 msd->flags |= S_ATTR_LOC_RELOC;
764 if (msd->extreloc)
765 msd->flags |= S_ATTR_EXT_RELOC;
768 YASM_WRITE_32_L(localbuf, msd->nreloc); /* nreloc */
774 info->s_reloff += msd->nreloc * MACHO_RELINFO_SIZE; /* nreloc */
782 YASM_WRITE_32_L(localbuf, msd->flags); /* flags */
865 /*@dependent@*/ /*@null@*/ macho_section_data *msd;
867 msd = yasm_section_get_data(sect, &macho_section_data_cb);
868 if (msd) {
869 if (msd->sym == sym) {
874 scnum = msd->scnum;
883 if (msd)
884 value += msd->vmoff;
998 /*@dependent@ *//*@null@ */ macho_section_data *msd;
1002 msd = yasm_section_get_data(sect, &macho_section_data_cb);
1003 assert(msd != NULL);
1005 msd->size = yasm_bc_next_offset(yasm_section_bcs_last(sect));
1006 if (!(msd->flags & S_ZEROFILL)) {
1007 msd->offset = info->offset;
1008 info->offset += msd->size;
1009 info->filesize += msd->size;
1013 msd->vmoff = info->vmsize;
1014 info->vmsize += msd->size;
1019 unsigned long delta = msd->vmoff % align;
1021 msd->vmoff += align - delta;
1293 macho_section_data *msd;
1299 msd = yasm_section_get_data(retval, &macho_section_data_cb);
1300 msd->segname = yasm__xstrdup("__TEXT");
1301 msd->sectname = yasm__xstrdup("__text");
1302 msd->flags = S_ATTR_PURE_INSTRUCTIONS;
1325 macho_section_data *msd;
1492 msd = yasm_section_get_data(retval, &macho_section_data_cb);
1496 msd->segname = data.f_segname;
1497 msd->sectname = f_sectname;
1498 msd->flags = flags;
1524 macho_section_data *msd = (macho_section_data *) data;
1525 yasm_xfree(msd->segname);
1526 yasm_xfree(msd->sectname);
1533 macho_section_data *msd = (macho_section_data *) data;
1536 yasm_symrec_print(msd->sym, f, indent_level + 1);
1537 fprintf(f, "%*sscnum=%ld\n", indent_level, "", msd->scnum);
1538 fprintf(f, "%*sflags=0x%lx\n", indent_level, "", msd->flags);
1539 fprintf(f, "%*ssize=%lu\n", indent_level, "", msd->size);
1540 fprintf(f, "%*snreloc=%lu\n", indent_level, "", msd->nreloc);
1541 fprintf(f, "%*soffset=%lu\n", indent_level, "", msd->offset);
1542 fprintf(f, "%*sextreloc=%u\n", indent_level, "", msd->extreloc);
1554 macho_symrec_data *msd = (macho_symrec_data *)data;
1556 fprintf(f, "%*sindex=%ld\n", indent_level, "", msd->index);
1558 if (msd->value)
1559 fprintf(f, "%ld\n", yasm_intnum_get_int(msd->value));