diff options
author | Nick Clifton <nickc@redhat.com> | 2021-02-12 14:52:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-02-12 14:52:22 +0000 |
commit | c46b706620eb9b27fa06e26406ffa4f79d9292e6 (patch) | |
tree | 0ec6f7bf04f8c7d05eb71ec5698d847a09777965 /ld | |
parent | 96df3e28b835ccb5804bcca96f417761e5e8be67 (diff) | |
download | gdb-c46b706620eb9b27fa06e26406ffa4f79d9292e6.zip gdb-c46b706620eb9b27fa06e26406ffa4f79d9292e6.tar.gz gdb-c46b706620eb9b27fa06e26406ffa4f79d9292e6.tar.bz2 |
Change the readelf and objdump programs so that they will automatically follow links to separate debug info files.
* configure.ac (follow-debug-links): Add option to enable or
disable the following of debug links by default. Set the
default for the option to be 'follow'.
* dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
(dwarf_select_sections_by_names): Add no-follow-links option.
(dwarf_select_sections_by_letter): Add 'N' option.
* objdump.c (usage): Add conditional text describing the
follow links option.
(slurp_symtab): Ensure that there is a NULL entry at the end
of the symbol table.
(slurp_dynamic_symtab): Likewise.
(dump_bfd): When extending the symbol table, ensure that there
is still a NULL entry at the end.
* readelf.c (usage): Add conditional text describing the
follow links option.
* doc/binutils.texi: Update documentation for objcopy and
readelf.
* doc/debug.options.texi: Update documentation of the
follow-links option.
* config.in: Regenerate.
* configure: Regenerate.
* testsuite/binutils-all/compress.exp: Add the -WN option to
objdump command lines that are not expecting to follow links.
* testsuite/binutils-all/readelf.exp: Add the
--debug-dump=no-follow-links option to tests that are not
expecting to follow debug links.
gas * testsuite/gas/mach-o/sections-1.d: Stop automatic debug link
following.
* testsuite/gas/xgate/insns-dwarf2.d: Likewise.
ld * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
following debug links.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/sec64k.exp | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 263f233..16c6f2f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2021-02-12 Nick Clifton <nickc@redhat.com> + + * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically + following debug links. + 2021-02-11 Alan Modra <amodra@gmail.com> * NEWS: Mention arm-symbianelf removal. diff --git a/ld/testsuite/ld-elf/sec64k.exp b/ld/testsuite/ld-elf/sec64k.exp index d148c26..a8ce933 100644 --- a/ld/testsuite/ld-elf/sec64k.exp +++ b/ld/testsuite/ld-elf/sec64k.exp @@ -135,7 +135,7 @@ if { ![istarget "m32r-*-*"] } then { puts $ofd "#as: -ez80-adl" } puts $ofd "#ld: -r" - puts $ofd "#readelf: -W -Ss" + puts $ofd "#readelf: -W -wN -Ss" puts $ofd "There are 680.. section headers.*:" puts $ofd "#..." puts $ofd " \\\[ 0\\\] .* 680\[0-9\]\[0-9\]\[ \]+0\[ \]+0" @@ -190,7 +190,7 @@ if { ![istarget "d10v-*-*"] if { [istarget "z80-*-*"] } then { puts $ofd "#as: -ez80-adl" } - puts $ofd "#readelf: -W -Ss" + puts $ofd "#readelf: -W -wN -Ss" puts $ofd "There are 660.. section headers.*:" puts $ofd "#..." puts $ofd " \\\[ 0\\\] .* 660..\[ \]+0\[ \]+0" |