diff options
Diffstat (limited to 'gas/stabs.c')
-rw-r--r-- | gas/stabs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/stabs.c b/gas/stabs.c index fc207f6e366..d295beae40b 100644 --- a/gas/stabs.c +++ b/gas/stabs.c @@ -492,9 +492,10 @@ stabs_generate_asm_file (void) as_where (&file, &lineno); if (use_gnu_debug_info_extensions) { - char *dir, *dir2; + const char *dir; + char *dir2; - dir = getpwd (); + dir = remap_debug_filename (getpwd ()); dir2 = alloca (strlen (dir) + 2); sprintf (dir2, "%s%s", dir, "/"); generate_asm_file (N_SO, dir2); |