diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-09-09 09:14:42 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-09-09 18:56:44 -0700 |
commit | 58f3b6a3495074da39ba6e19935e4401dcbacf88 (patch) | |
tree | 0502264d6cdc1b9524a452871a6bfe36636b61a9 /bfd/elfxx-sparc.h | |
parent | 653cc1a141ca3ce901f31479f0f27abc99866cd5 (diff) | |
download | gdb-58f3b6a3495074da39ba6e19935e4401dcbacf88.zip gdb-58f3b6a3495074da39ba6e19935e4401dcbacf88.tar.gz gdb-58f3b6a3495074da39ba6e19935e4401dcbacf88.tar.bz2 |
gas: Use the directory name in .file 0
DWARF5 allows .file 0 to take an optional directory name. Set the entry
0 of the directory table to the directory name in .file 0.
PR gas/28266
* dwarf2dbg.c (get_directory_table_entry): Add an argument for
the directory name in .file 0 and use it, instead of PWD.
(allocate_filenum): Pass NULL to get_directory_table_entry.
(allocate_filename_to_slot): Pass the incoming dirname to
get_directory_table_entry.
* testsuite/gas/elf/dwarf-5-file0-2.d: New file.
* testsuite/gas/elf/dwarf-5-file0-2.s: Likewise.
* testsuite/gas/elf/elf.exp: Run dwarf-5-file0-2.
Diffstat (limited to 'bfd/elfxx-sparc.h')
0 files changed, 0 insertions, 0 deletions