Kristina Bessonova
4e958b4d7c
[llvm-objdump] Avoid using mapping symbols as branch target labels
...
The main motivation for this change is to avoid ambiguity because
mapping symbol names may not be unique across a binary and do not allow uniquely
identifying target address. So that mapping symbols used as branch target
labels make llvm-objdump output less readable.
Another point is that mapping symbols sometimes appear in
non-allocatable sections, like debug info sections which make objdump
output even more confusing.
For example, a small AArch64 executable may contain plenty of `$d[.*]`
symbols and none of them would be useful as a label for resolving
a branch or a memory operand target address:
```
0000000000000254 l .note.ABI-tag 0000000000000000 $d
00000000000008d4 l .eh_frame 0000000000000000 $d
0000000000000868 l .rodata 0000000000000000 $d
0000000000011028 l .data 0000000000000000 $d
0000000000010db8 l .fini_array 0000000000000000 $d
0000000000010db0 l .init_array 0000000000000000 $d
00000000000008e8 l .eh_frame 0000000000000000 $d
0000000000011034 l .bss 0000000000000000 $d
```
Note that GNU objdump doesn't use mapping symbols as branch target
labels for all targets that support such symbols (ARM, AArch64, CSKY).
Differential Revision: https://reviews.llvm.org/D139131
2022-12-06 12:19:12 +02:00
..
2022-10-29 15:40:26 -07:00
2022-10-29 15:40:26 -07:00
2020-07-20 10:39:04 +01:00
2022-07-26 10:22:02 +01:00
2022-07-26 10:22:02 +01:00
2020-12-14 12:03:00 +03:00
2021-02-13 10:32:27 -08:00
2021-02-23 13:26:18 +00:00
2022-10-29 15:40:26 -07:00
2022-10-29 15:40:26 -07:00
2020-12-14 12:03:00 +03:00
2021-11-30 09:28:18 +00:00
2022-07-27 09:15:14 +01:00
2020-11-25 11:42:54 +00:00
2020-11-25 11:42:54 +00:00
2022-03-17 17:29:31 +00:00
2020-11-28 12:28:22 -08:00
2021-04-01 10:45:37 -07:00
2022-12-06 12:19:12 +02:00
2021-12-21 19:02:14 -05:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2022-10-29 15:40:26 -07:00
2022-11-27 20:10:29 -08:00
2022-11-27 20:10:29 -08:00
2022-02-07 15:47:53 +00:00
2022-06-05 15:11:01 -07:00
2021-04-28 16:26:18 +01:00
2021-04-28 16:26:18 +01:00
2020-11-06 15:13:07 +00:00
2020-11-06 15:13:07 +00:00
2020-11-06 15:13:07 +00:00
2020-11-06 15:13:07 +00:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-11-28 12:28:22 -08:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2021-06-28 15:20:24 +00:00
2020-07-20 10:39:04 +01:00
2022-08-16 11:22:56 +01:00
2022-08-16 11:22:56 +01:00
2022-08-16 11:22:56 +01:00
2022-08-16 11:22:56 +01:00
2022-08-16 11:22:56 +01:00
2022-07-26 08:32:40 +01:00
2022-07-26 08:32:40 +01:00
2020-07-20 10:39:04 +01:00
2022-08-16 11:22:56 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-09-09 12:35:43 -07:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2022-06-05 14:53:59 -07:00
2022-06-05 14:53:59 -07:00
2020-12-14 12:03:00 +03:00
2020-10-04 15:48:57 -07:00
2020-11-16 20:02:25 -08:00
2020-10-04 15:48:57 -07:00
2020-10-04 15:48:57 -07:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2020-07-20 10:39:04 +01:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-11-18 13:52:33 -08:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2022-10-29 15:40:26 -07:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-07-20 10:39:04 +01:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2021-02-13 10:32:27 -08:00
2021-12-06 11:06:25 +00:00
2021-12-06 11:06:25 +00:00
2021-11-30 09:28:18 +00:00
2021-11-08 12:39:50 -06:00
2022-10-29 15:40:26 -07:00
2020-07-20 10:39:04 +01:00
2021-01-14 08:56:45 -08:00
2021-01-14 08:56:45 -08:00
2022-06-07 13:39:52 +08:00
2021-01-21 20:31:52 -08:00
2021-02-10 11:00:42 -08:00
2021-01-14 08:56:45 -08:00
2021-02-07 15:47:10 -08:00
2021-07-15 10:26:21 -07:00
2020-12-14 12:03:00 +03:00
2021-02-07 15:47:10 -08:00
2021-01-14 08:56:45 -08:00
2022-10-10 22:06:35 +01:00
2022-11-29 08:47:00 +00:00
2020-07-16 11:25:53 +01:00
2021-04-28 16:26:18 +01:00
2020-07-16 11:25:53 +01:00
2021-12-07 10:15:19 +00:00
2021-12-07 10:15:19 +00:00
2021-03-05 21:39:16 -08:00
2021-02-07 15:47:10 -08:00
2022-06-01 11:25:49 +03:00
2022-06-01 11:25:49 +03:00
2022-06-01 11:25:49 +03:00
2022-06-01 11:25:49 +03:00
2022-06-01 11:25:49 +03:00
2022-06-01 11:25:49 +03:00
2021-09-07 15:46:19 +01:00
2022-01-27 00:37:49 -08:00
2022-10-29 15:40:26 -07:00
2020-12-14 12:03:00 +03:00
2020-12-14 12:03:00 +03:00
2022-10-29 15:40:26 -07:00
2022-10-29 15:40:26 -07:00
2022-01-15 00:13:49 -08:00
2022-10-29 15:40:26 -07:00
2020-12-14 12:03:00 +03:00
2021-03-01 17:41:35 -08:00
2021-02-24 09:58:08 -08:00
2022-10-29 15:40:26 -07:00
2021-05-19 15:05:39 -07:00
2021-02-23 09:25:40 -08:00
2021-05-07 12:13:36 +02:00
2021-03-06 17:45:23 -08:00
2021-02-07 15:47:10 -08:00
2021-06-30 16:35:28 +07:00
2020-12-14 12:03:00 +03:00
2021-02-24 14:08:56 -08:00
2021-02-10 11:00:42 -08:00
2020-12-14 12:03:00 +03:00
2020-07-20 10:39:04 +01:00
2021-02-07 15:47:10 -08:00
2021-01-14 08:56:45 -08:00
2020-11-24 18:13:10 +03:00