| 1 | #!/bin/sh -eu |
| 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | |
| 4 | tmp_file= |
| 5 | |
| 6 | |
| 7 | |
| 8 | void *p = &p; |
| 9 | END |
| 10 | |
| 11 | # ld.lld before 15 did not support -z pack-relative-relocs. |
| 12 | if ! ; then |
| 13 | | |
| 14 | && |
| 15 | fi |
| 16 | |
| 17 | # Despite printing an error message, GNU nm still exits with exit code 0 if it |
| 18 | # sees a relr section. So we need to check that nothing is printed to stderr. |
| 19 | |
| 20 | |
| 21 |