diff options
Diffstat (limited to 'gas/listing.c')
-rw-r--r-- | gas/listing.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gas/listing.c b/gas/listing.c index 18c6e3ba3ae..31eae98ae49 100644 --- a/gas/listing.c +++ b/gas/listing.c @@ -324,7 +324,13 @@ listing_newline (char *ps) } #endif - file = as_where (&line); + /* PR 21977 - use the physical file name not the logical one unless high + level source files are being included in the listing. */ + if (listing & LISTING_HLL) + file = as_where (&line); + else + file = as_where_physical (&line); + if (ps == NULL) { if (line == last_line |