Commit 4483871
committed
fix(arm): guard .size directive in EPILOGUE for non-ELF targets
The `.size REALNAME, .-REALNAME` directive is valid for ELF targets but may be unnecessary or unsupported on Apple (Mach-O) and Windows (PE) assembly. Wrap the `.size` line in a conditional so that it is only emitted when not targeting __APPLE__ or _WIN32. This prevents potential assembler warnings or errors on those platforms while preserving the size directive for Linux/ELF builds. The GNUSTACK emission remains unchanged.
Signed-off-by: minicx <minicx@disroot.org>1 parent 969e444 commit 4483871
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
| 126 | + | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| |||
0 commit comments