Lines Matching refs:current_offset

1952 		  unsigned long current_offset)  in som_object_setup()  argument
2039 bfd_get_start_address (abfd) = aux_hdrp->exec_entry + current_offset; in som_object_setup()
2056 obj_som_sym_filepos (abfd) = file_hdrp->symbol_location + current_offset; in som_object_setup()
2058 + current_offset); in som_object_setup()
2060 + current_offset); in som_object_setup()
2075 unsigned long current_offset) in setup_sections() argument
2090 if (bfd_seek (abfd, current_offset + file_hdr->space_strings_location, in setup_sections()
2111 (current_offset + file_hdr->space_location in setup_sections()
2150 (current_offset + file_hdr->subspace_location in setup_sections()
2159 (current_offset + file_hdr->subspace_location in setup_sections()
2169 space_asect->filepos = subspace.file_loc_init_value + current_offset; in setup_sections()
2301 + current_offset); in setup_sections()
2385 unsigned long current_offset = 0; in som_object_p() local
2457 current_offset = bfd_getb32 (ext_som_entry.location); in som_object_p()
2458 if (bfd_seek (abfd, current_offset, SEEK_SET) != 0) in som_object_p()
2511 if (!setup_sections (abfd, &file_hdr, current_offset)) in som_object_p()
2519 return som_object_setup (abfd, &file_hdr, aux_hdr_ptr, current_offset); in som_object_p()
2893 unsigned long current_offset, in som_write_fixups() argument
2959 if (bfd_seek (abfd, current_offset + total_reloc_size, SEEK_SET) != 0) in som_write_fixups()
3301 unsigned long current_offset, in som_write_space_strings() argument
3315 if (bfd_seek (abfd, (file_ptr) current_offset, SEEK_SET) != 0) in som_write_space_strings()
3404 unsigned long current_offset, in som_write_symbol_strings() argument
3430 if (bfd_seek (abfd, (file_ptr) current_offset, SEEK_SET) != 0) in som_write_symbol_strings()
3580 unsigned long current_offset = 0; in som_begin_writing() local
3599 current_offset += sizeof (struct som_external_header); in som_begin_writing()
3603 obj_som_file_hdr (abfd)->aux_header_location = current_offset; in som_begin_writing()
3610 current_offset += sizeof (struct som_external_exec_auxhdr); in som_begin_writing()
3622 if (bfd_seek (abfd, (file_ptr) current_offset, SEEK_SET) != 0) in som_begin_writing()
3628 current_offset += len; in som_begin_writing()
3637 current_offset += len; in som_begin_writing()
3648 if (bfd_seek (abfd, (file_ptr) current_offset, SEEK_SET) != 0) in som_begin_writing()
3654 current_offset += len; in som_begin_writing()
3663 current_offset += len; in som_begin_writing()
3671 obj_som_file_hdr (abfd)->init_array_location = current_offset; in som_begin_writing()
3684 obj_som_file_hdr (abfd)->space_location = current_offset; in som_begin_writing()
3686 current_offset += in som_begin_writing()
3697 obj_som_file_hdr (abfd)->subspace_location = current_offset; in som_begin_writing()
3699 current_offset in som_begin_writing()
3707 if (current_offset % 4) in som_begin_writing()
3708 current_offset += (4 - (current_offset % 4)); in som_begin_writing()
3712 obj_som_file_hdr (abfd)->space_strings_location = current_offset; in som_begin_writing()
3715 if (! som_write_space_strings (abfd, current_offset, &strings_size)) in som_begin_writing()
3721 current_offset += strings_size; in som_begin_writing()
3724 obj_som_file_hdr (abfd)->compiler_location = current_offset; in som_begin_writing()
3729 current_offset += sizeof (struct som_external_compilation_unit); in som_begin_writing()
3775 current_offset = SOM_ALIGN (current_offset, PA_PAGESIZE); in som_begin_writing()
3781 exec_header->exec_tfile = current_offset; in som_begin_writing()
3786 exec_header->exec_dfile = current_offset; in som_begin_writing()
3812 current_offset += subsection->vma - subspace_offset; in som_begin_writing()
3832 = current_offset; in som_begin_writing()
3833 subsection->filepos = current_offset; in som_begin_writing()
3834 current_offset += subsection->size; in som_begin_writing()
3859 current_offset = SOM_ALIGN (current_offset, PA_PAGESIZE); in som_begin_writing()
3861 obj_som_file_hdr (abfd)->unloadable_sp_location = current_offset; in som_begin_writing()
3872 current_offset = SOM_ALIGN (current_offset, PA_PAGESIZE); in som_begin_writing()
3890 = current_offset; in som_begin_writing()
3891 subsection->filepos = current_offset; in som_begin_writing()
3892 current_offset += subsection->size; in som_begin_writing()
3911 current_offset = SOM_ALIGN (current_offset, PA_PAGESIZE); in som_begin_writing()
3912 if (bfd_seek (abfd, (file_ptr) current_offset - 1, SEEK_SET) != 0) in som_begin_writing()
3918 = current_offset - obj_som_file_hdr (abfd)->unloadable_sp_location; in som_begin_writing()
3925 obj_som_file_hdr (abfd)->som_length = current_offset; in som_begin_writing()
3941 unsigned long current_offset; in som_finish_writing() local
3967 current_offset = obj_som_file_hdr (abfd)->som_length; in som_finish_writing()
3970 if (current_offset % 4) in som_finish_writing()
3971 current_offset += (4 - (current_offset % 4)); in som_finish_writing()
3974 obj_som_file_hdr (abfd)->symbol_location = current_offset; in som_finish_writing()
3976 current_offset += in som_finish_writing()
3981 if (current_offset % 4) in som_finish_writing()
3982 current_offset += (4 - (current_offset % 4)); in som_finish_writing()
3983 obj_som_file_hdr (abfd)->symbol_strings_location = current_offset; in som_finish_writing()
3986 if (! som_write_symbol_strings (abfd, current_offset, syms, in som_finish_writing()
3994 current_offset += strings_size; in som_finish_writing()
4003 if (current_offset % 4) in som_finish_writing()
4004 current_offset += (4 - (current_offset % 4)); in som_finish_writing()
4005 obj_som_file_hdr (abfd)->fixup_request_location = current_offset; in som_finish_writing()
4009 if (! som_write_fixups (abfd, current_offset, &total_reloc_size)) in som_finish_writing()
4016 obj_som_file_hdr (abfd)->som_length = current_offset + total_reloc_size; in som_finish_writing()