bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/31096] nm for mips32 (native or cross-compiled) shows 32bi


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/31096] nm for mips32 (native or cross-compiled) shows 32bit addresses as sign-extended 64bit addresses
Date: Wed, 06 Dec 2023 02:59:43 +0000

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

--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3c8852fcc806915fdeab8b3d6f49be7347160527

commit 3c8852fcc806915fdeab8b3d6f49be7347160527
Author: Alan Modra <amodra@gmail.com>
Date:   Tue Dec 5 09:23:41 2023 +1030

    PR31096, nm shows 32bit addresses as 64bit addresses

    Prior to commit 0e3c1eebb2 nm output depended on the host unsigned
    long when printing "negative" symbol values for 32-bit targets.
    Commit 0e3c1eebb22 made the output match that seen with a 64-bit host
    unsigned long.  The fact that nm output changed depending on host is
    of course a bug, but it is reasonable to expect 32-bit target output
    is only 32 bits.  So this patch makes 32-bit target output the same as
    it was on 32-bit hosts prior to 0e3c1eebb2.

            PR 31096
            * nm.c (print_format_string): Make it a static buffer.
            (get_print_format): Merge into..
            (set_print_format): ..this, renamed from set_print_width.  When
            print_width is 32, set up print_format_string for an int32_t
            value.  Don't malloc print_format_string.  Adjust calls.
            (print_value): Correct printing of 32-bit values.

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