• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/src/

Lines Matching refs:section

49   struct scnhdr *section, *sections, *sections_limit;
75 error ("cannot allocate section header storage");
79 error ("cannot read section headers");
90 error (".rwdi section needs relocation - cannot dump Emacs");
101 for (section = sections; (section->s_flags & STYP_TEXT) != 0; section++) ;
107 for (; section != sections_limit; section++)
109 if ((section->s_flags & STYP_DATA) != 0)
112 first_data_section = section;
113 last_data_section = section;
115 if (section->s_relptr != 0)
116 section->s_relptr += delta_after_rwdi;
128 for (section = last_data_section+1;
129 (section->s_flags & STYP_BSS) != 0; section++) ;
133 for (; section != sections_limit; section++)
135 long delta = (section < rwdi_section ? delta_before_rwdi : delta_after_rwdi);
136 if (section->s_paddr != 0)
137 section->s_paddr += delta;
138 if (section->s_vaddr != 0)
141 first_changed_vaddr = section->s_vaddr;
142 section->s_vaddr += delta;
144 if (section->s_scnptr != 0)
145 section->s_scnptr += delta;
146 if (strcmp (section->s_name, ".blocks") == 0)
147 blocks_section = section;
148 else if (strcmp (section->s_name, ".sri") == 0 &&
151 else if (strcmp (section->s_name, ".inlib") == 0 &&
170 error ("cannot write section headers");
172 for (section = sections; section != first_data_section; section++)
173 if (section->s_scnptr != 0)
174 CopyData (target_file, source_file, LONG_ALIGN(section->s_size));
177 error ("cannot write new data section");
183 error ("cannot seek past data section");
184 for (section = last_data_section+1; section != rwdi_section; section++)
185 if (section->s_scnptr != 0)
186 CopyData (target_file, source_file, LONG_ALIGN(section->s_size));
189 error ("cannot seek past .rwdi section");
194 for (section = first_data_section; section <= last_data_section; section++)
195 for (i = 0; i < section->s_nreloc; i++)
197 if (lseek (source_file, section->s_relptr
203 if (lseek (source_file, reloc_entry.r_vaddr-section->s_vaddr
204 +section->s_scnptr, L_SET) == -1)
206 if (lseek (target_file, reloc_entry.r_vaddr-section->s_vaddr
207 +section->s_scnptr, L_SET) == -1)
216 /* Correct virtual addresses in .blocks section. */
224 /* Find section tables and update section base addresses. */
251 error ("cannot seek to section table");
254 error ("cannot read section table size");
259 error ("cannot read section base value");
266 error ("cannot seek to section base value");
269 error ("cannot write section base");