Summary: | objdump: add --show-all-symbols | ||
---|---|---|---|
Product: | binutils | Reporter: | Fangrui Song <i> |
Component: | binutils | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | NEW --- | ||
Severity: | normal | CC: | nickc |
Priority: | P2 | ||
Version: | 2.40 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | Proposed patch |
Description
Fangrui Song
2022-12-05 00:32:17 UTC
Created attachment 14488 [details]
Proposed patch
Hi Fanguri,
What do you think of the uploaded patch ?
With it applied, objdump's behaviour is similar to llvm-objdump's:
% .objdump -d multisym.o --show-all-symbols
multisym.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <aaaa>:
00000000 <bbbb>:
0: e0800080 add r0, r0, r0, lsl #1
...etc...
The difference is that it does not show the <$a.0> symbol. (Because
the ARM backend in the BFD library considers it to be an "invalid"
symbol).
Personally I prefer this behaviour since those markup symbols are
rarely useful to the user.
Cheers
Nick
|