bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/27584] nm riscv: Suppress empty name symbols unless --spec


From: nelsonc1225 at sourceware dot org
Subject: [Bug binutils/27584] nm riscv: Suppress empty name symbols unless --special-syms?
Date: Thu, 15 Apr 2021 02:44:12 +0000

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

Nelson Chu <nelsonc1225 at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Nelson Chu <nelsonc1225 at sourceware dot org> ---
This should be fixed in the FSF mainline, so marked as Resolved/Fixed.

Copy the example from llvm, https://reviews.llvm.org/D98669
$ cat tmp.s
.globl foo
foo:
  nop
  .file 1 "/tmp" "a.s"
  .loc 1 1 0
  nop

.section .debug_line,"",@progbits
$ llvm-mc -filetype=obj -triple=riscv64 tmp.s -o tmp.o

Use the old nm,
$ riscv64-unknown-elf-nm tmp.o
0000000000000004 t
0000000000000000 T foo

Use the mainline nm,
$ riscv64-unknown-elf-nm tmp.o
0000000000000000 T foo
$ riscv64-unknown-elf-nm --special-sym tmp.o
0000000000000004 t
0000000000000000 T foo

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