That, as well as "sym = expr", if expr contains symbols. Slightly tricky because a definition from .set is overridable, whereas proper definitions aren't. This doesn't yet allow using this for override tricks from C and global asm blocks because the symbol tables from C and asm are separate.
Showing the changes to tests (1 of 3 files). Show all
Unified · Split
| @@ -824,6 +824,17 @@ nop · 823 unmodified lines | ||
| 824 | 824 | .skip (-((4b-3b) > 0) * 2) , 0x90 |
| 825 | 825 | .popsection |
| 826 | 826 | |
| 827 | +.globl overrideme | |
| 828 | +.weak overrideme | |
| 829 | + nop | |
| 830 | +.globl notimplemented | |
| 831 | +notimplemented: | |
| 832 | + ret | |
| 833 | +.set overrideme, notimplemented | |
| 834 | +overrideme = notimplemented | |
| 835 | +overrideme: | |
| 836 | + ret | |
| 837 | + | |
| 827 | 838 | movd %esi, %mm1 |
| 828 | 839 | movd %edi, %xmm2 |
| 829 | 840 | movd (%ebx), %mm3 |