Files
clang-p2996/lld/test/ELF
Fangrui Song 4ce56b8122 [ELF] Add -z dead-reloc-in-nonalloc=<section_glob>=<value>
... to customize the tombstone value we use for an absolute relocation
referencing a discarded symbol. This can be used as a workaround when
some debug processing tool has trouble with current -1 tombstone value
(https://bugs.chromium.org/p/chromium/issues/detail?id=1102223#c11 )

For example, to get the current built-in rules (not considering the .debug_line special case for ICF):

```
-z dead-reloc-in-nonalloc='.debug_*=0xffffffffffffffff'
-z dead-reloc-in-nonalloc=.debug_loc=0xfffffffffffffffe
-z dead-reloc-in-nonalloc=.debug_ranges=0xfffffffffffffffe
```

To get GNU ld (as of binutils 2.35)'s behavior:

```
-z dead-reloc-in-nonalloc='*=0'
-z dead-reloc-in-nonalloc=.debug_ranges=1
```

This option has other use cases. For example, if we want to check
whether a non-SHF_ALLOC section has dead relocations.
With this patch, we can run a regular LLD and run another with a special
-z dead-reloc-in-nonalloc=, then compare their output.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D83264
2020-07-08 10:15:16 -07:00
..
2020-06-01 10:19:41 -07:00
2019-07-22 11:37:03 +00:00
2020-03-27 11:56:02 -07:00
2020-03-27 11:56:02 -07:00
2020-03-31 12:41:18 +01:00
2019-09-07 10:42:11 +00:00
2019-09-07 10:42:11 +00:00
2020-03-27 11:56:02 -07:00
2020-04-13 19:32:44 -05:00
2019-08-01 09:25:34 +00:00
2020-05-29 14:22:03 -07:00
2019-09-07 10:42:11 +00:00
2020-06-01 10:19:41 -07:00
2019-07-25 07:12:23 +00:00
2019-09-07 10:42:11 +00:00
2020-06-01 10:19:41 -07:00
2020-06-01 10:19:41 -07:00
2019-09-07 10:42:11 +00:00
2020-06-01 10:19:41 -07:00
2019-09-07 10:42:11 +00:00