这个段由gas生成,gas是binutils的一部分。
很少有介绍,具体代码在
static void s_mips_end (int x ATTRIBUTE_UNUSED)
{
......
fragp = frag_more (7 * 4);
md_number_to_chars (fragp, cur_proc_ptr->reg_mask, 4);
md_number_to_chars (fragp + 4, cur_proc_ptr->reg_offset, 4);
md_number_to_chars (fragp + 8, cur_proc_ptr->fpreg_mask, 4);
md_number_to_chars (fragp + 12, cur_proc_ptr->fpreg_offset, 4);
md_number_to_chars (fragp + 16, cur_proc_ptr->frame_offset, 4);
md_number_to_chars (fragp + 20, cur_proc_ptr->frame_reg, 4);
md_number_to_chars (fragp + 24, cur_proc_ptr->pc_reg, 4);
subseg_set (saved_seg, saved_subseg);
}
//adr的信息不在上面~~
elf_format_ops:elf_frob_file_after_relocs
elf_frob_file_after_relocs->ecoff_build_debug->ecoff_build_procs
write_object_file->obj_frob_file_after_relocs=elf_frob_file_after_relocs
阅读(1939) | 评论(0) | 转发(0) |