* Prevent strange "section mentioned in a -j option but not found"
@ 2020-07-27 12:58 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-07-27 12:58 UTC (permalink / raw)
To: binutils
"objdump -s -j .bss" results in a message that indicates objdump
couldn't find a .bss section when present. Fix that.
* objdump.c (dump_section): Don't return without calling
process_section_p.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 978d86cb1f..79ef051856 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -4283,10 +4283,10 @@ dump_section (bfd *abfd, asection *section, void *dummy ATTRIBUTE_UNUSED)
int count;
int width;
- if ((section->flags & SEC_HAS_CONTENTS) == 0)
+ if (! process_section_p (section))
return;
- if (! process_section_p (section))
+ if ((section->flags & SEC_HAS_CONTENTS) == 0)
return;
if ((datasize = bfd_section_size (section)) == 0)
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-27 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 12:58 Prevent strange "section mentioned in a -j option but not found" Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).