bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/25138] Incorrect subtraction in linker script


From: amodra at gmail dot com
Subject: [Bug binutils/25138] Incorrect subtraction in linker script
Date: Mon, 28 Oct 2019 02:42:27 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |amodra at gmail dot com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
You didn't show much of your linker script but I suspect you defined
_nvram_data, _envram, and _nvram_data_size inside some output section, in which
case all the values are zero *relative to that output section*.

If that is so, the value shown by the 2.33 map file for _nvram_data_size is
correct and will match that reported by nm for the symbol.  (The patch you
identify fixed bugs in symbol values shown in map files.)

Assign _nvram_data_size after the output section, and of course not inside some
other output section.

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