bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/21212] New: Improve "Empty loadable segment detected" warn


From: binutils at ineranves dot de
Subject: [Bug binutils/21212] New: Improve "Empty loadable segment detected" warning
Date: Thu, 02 Mar 2017 08:45:19 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21212

            Bug ID: 21212
           Summary: Improve "Empty loadable segment detected" warning
           Product: binutils
           Version: 2.29 (HEAD)
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: binutils at ineranves dot de
  Target Milestone: ---

Created attachment 9868
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9868&action=edit
git patch

This warning is currently shown (among other situations) when a segment has
p_filesz = 0 and a p_memsz > 0 , which is a valid setup to initialize flash
memory of embedded systems with zeros and explicitly mentioned in the ELF
specification as a valid use case.
The attached patch limits the warning to situations when p_filesz > 0 - which
happens when a segment is truncated to 0 length by an objcopy operation that
removes all of the segment's sections.

When the warning is shown, it should identify the segment it is talking about.
The attached patch includes the p_vaddr of the segment for that purpose.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]