(end_final): Store full path name in .d file not just the filename.

From-SVN: r7745
This commit is contained in:
Jim Wilson 1994-07-12 10:09:32 -07:00
parent 78221d63e7
commit 67e23d2f5c

View File

@ -378,9 +378,13 @@ end_final (filename)
compatibility. */ compatibility. */
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LPBX", 1); ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, "LPBX", 1);
{ {
int len = strlen (filename); char *cwd = getpwd ();
char *data_file = (char *) alloca (len + 3); int len = strlen (filename) + strlen (cwd) + 1;
strcpy (data_file, filename); char *data_file = (char *) alloca (len + 4);
strcpy (data_file, cwd);
strcat (data_file, "/");
strcat (data_file, filename);
strip_off_ending (data_file, len); strip_off_ending (data_file, len);
strcat (data_file, ".d"); strcat (data_file, ".d");
assemble_string (data_file, strlen (data_file) + 1); assemble_string (data_file, strlen (data_file) + 1);