| 1 | #!/bin/bash |
| 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | |
| 4 | |
| 5 | |
| 6 | # To debug, uncomment the following line |
| 7 | # set -x |
| 8 | |
| 9 | # Output from -fpatchable-function-entry can only vary on ppc64 elfv2, so this |
| 10 | # should not be invoked for other targets. Therefore we can pass in -m64 and |
| 11 | # -mabi explicitly, to take care of toolchains defaulting to other targets. |
| 12 | |
| 13 | # Test whether the compile option -fpatchable-function-entry exists and |
| 14 | # generates appropriate code |
| 15 | | \ |
| 16 | | \ |
| 17 | |
| 18 | |
| 19 | # Test whether nops are generated after the local entry point |
| 20 | | \ |
| 21 | | \ |
| 22 | | \ |
| 23 | |
| 24 | |
| 25 |