Stop Gas from generating line info or address ranges for sections that do not contain...
authorNick Clifton <nickc@redhat.com>
Thu, 12 Nov 2020 11:43:20 +0000 (11:43 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 12 Nov 2020 11:43:20 +0000 (11:43 +0000)
commitbcb78b47614ed252226da1a688558a17d8a99ce8
tree18d3480d3cb634ae6c431ef27e1b338ccecfbe84
parentab33b15255460ac45a001c8ebf69ef73f6f1fba4
Stop Gas from generating line info or address ranges for sections that do not contain code or are not loaded.

PR 26850
* dwarf2dbg.c (dwarf2_gen_line_info_1): Do not record lines in
sections that are not executable or not loadable.
(out_debug_line): Move warning message into dwarf2_gen_line_info_1.
* testsuite/gas/elf/dwarf2-20.s: New test.
* testsuite/gas/elf/dwarf2-20.d: New test driver.
* testsuite/gas/elf/elf.exp: Run the new test.
* testsuite/gas/elf/warn-2.s: Use the .nop directive.
gas/ChangeLog
gas/dwarf2dbg.c
gas/testsuite/gas/elf/dwarf2-20.d [new file with mode: 0644]
gas/testsuite/gas/elf/dwarf2-20.s [new file with mode: 0644]
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/warn-2.s
This page took 0.023941 seconds and 4 git commands to generate.