bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/25676] binutils can't handle the split/linked nature of th


From: nickc at redhat dot com
Subject: [Bug binutils/25676] binutils can't handle the split/linked nature of the debug-records for variables whose (separate) extern-decl and definition are found in the same compilation unit
Date: Mon, 23 Mar 2020 15:33:48 +0000

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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |FIXED

--- Comment #6 from Nick Clifton <nickc at redhat dot com> ---
(In reply to cialdi from comment #5)
Hi Max,

> For object files compiled with -fcommon nm cannot "find" file name and line.
> The strange thing (in my opinion) is that for the corresponding elf file it
> does.

This is because "common" variables do not have single place where they are
defined.  At least not in object files.  They can be defined in multiple
locations, and it is only once they are linked that a final size and place of
definition is chosen.

If you look at the object file nm's output will show the variables of type "C".
 But once the object file is linked their type changes to "B", as they now have
a definite location and size.

Cheers
  Nick

-- 
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]