]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
GAS: DWARF-5: Ensure that the 0'th entry in the directory table contains the current...
authorNick Clifton <nickc@redhat.com>
Mon, 9 Aug 2021 16:23:22 +0000 (17:23 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 9 Aug 2021 16:23:22 +0000 (17:23 +0100)
commit3417bfca676ff0b440f070a09837813e99b2c731
tree29729580690004b3d2460b7b4635ece1028aba15
parentb18bfc0946d2cfba76c0a56852bcf1c7a42f4868
GAS: DWARF-5: Ensure that the 0'th entry in the directory table contains the current working directory.

* dwarf2dbg.c (get_directory_table_entry): Ensure that dir[0]
contains current working directory.
(out_dir_and_file_list): Likewise.
* testsuite/gas/elf/dwarf-5-dir0.s: New test source file.
* testsuite/gas/elf/dwarf-5-dir0.d: New test driver.
* testsuite/gas/elf/elf.exp: Run the new test.
* testsuite/gas/elf/dwarf-5-file0.d: Adjust expected output.
* testsuite/gas/i386/dwarf5-line-1.d: Likewise.
* testsuite/gas/i386/dwarf5-line-2.d: Likewise.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/gas/elf/dwarf-5-dir0.d [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf-5-dir0.s [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf-5-file0.d
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/i386/dwarf5-line-1.d
gas/testsuite/gas/i386/dwarf5-line-2.d