Commit ebb37da
committed
Use -flto-partition=balanced when cross-compiling to ARM
Using -flto-partition=none causes the linker to produce very large code sections, which exceed the maximum branch size allowed in Thumb-2 mode. This results in errors like the following during the assembly stage:
/tmp/cc4XktsH.s: Assembler messages:
/tmp/cc4XktsH.s:7861200: Error: Thumb-2 branch out of range1 parent d5506d0 commit ebb37da
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
190 | 196 | | |
191 | 197 | | |
192 | 198 | | |
| |||
0 commit comments