Lines Matching defs:stub
1 /* BFD back-end for Intel 386 COFF files (DJGPP variant with a stub).
23 /* This file handles now also stubbed coff images. The stub is a small
33 image had no stub by using the filepointers as pointers in the coff
105 /* I hold in the usrdata the stub. */
113 image into memory and then runs it. It is called 'stub'. */
144 /* Save now the stub to be used later. */
153 memcpy (bfd_coff_go32stub (abfd), filehdr_src->stub, STUBSIZE);
165 /* Generate the stub. */
168 /* Copy the stub to the file header. */
170 memcpy (filehdr_out->stub, bfd_coff_go32stub (abfd), STUBSIZE);
173 memcpy (filehdr_out->stub, stub_bytes, STUBSIZE);
282 /* That's the function, which creates the stub. There are
283 different cases from where the stub is taken.
286 If it exists and points to a valid stub the stub is taken from
288 the stub is computed from the exe information at the start of that
291 If there was any error, the standard stub (compiled in this file)
301 char *stub;
310 stub = getenv ("GO32STUB");
312 if (stub == NULL)
313 stub = getenv ("STUB");
314 if (stub == NULL)
316 if (stat (stub, &st) != 0)
319 f = open (stub, O_RDONLY | O_BINARY);
321 f = open (stub, O_RDONLY);
335 /* Compute the size of the stub (it is every thing up
341 /* Currently there is only a fixed stub size of 2048 bytes
364 /* Now we found a correct stub (hopefully). */
383 stub. */
394 /* If ibfd was a stubbed coff image, copy the stub from that bfd
406 /* Check if both have a valid stub. */
411 /* Now copy the stub. */