usr.bin/ld/ld.c
/* Relocate the data segment of each input file
   and write to the output file.  */
Relocate the data segment of each input file
and write to the output file.
Relocate the data segment of each input file and write to the output file .
void
write_data ()
{
  if (trace_files)
    fprintf (stderr, "Copying and relocating data:\n\n");
  each_full_file (copy_data, 0);
  file_close ();
  if (set_vector_count)
    mywrite (set_vectors, 2 * set_symbol_count + set_vector_count,
	     sizeof (unsigned long), outdesc);
  if (trace_files)
    fprintf (stderr, "\n");
  padfile (data_pad, outdesc);
}
void write_data ( ) { if ( trace_files ) fprintf ( stderr , " \n \n " ) ; each_full_file ( copy_data , 0 ) ; file_close ( ) ; if ( set_vector_count ) mywrite ( set_vectors , 2 * set_symbol_count + set_vector_count , sizeof ( unsigned long ) , outdesc ) ; if ( trace_files ) fprintf ( stderr , " \n " ) ; padfile ( data_pad , outdesc ) ; }
Relocate the data segment of each input file
and write to the output file.
Relocate the data segment of each input file and write to the output file .
/* Write out the set element vectors.  See digest symbols for
     description of length of the set vector section.  */