[PATCH 02/12] firmware: declare {__start,__end}_builtin_fw as external array

2016-10-16 Thread Vegard Nossum
The test in this loop: for (b_fw = __start_builtin_fw; b_fw != __end_builtin_fw; b_fw++) { was getting completely compiled out by my gcc, 7.0.0 20160520. The result was that the loop was going beyond the end of the builtin_fw array and giving me a page fault when trying to dereference

[PATCH 02/12] firmware: declare {__start,__end}_builtin_fw as external array

2016-10-16 Thread Vegard Nossum
The test in this loop: for (b_fw = __start_builtin_fw; b_fw != __end_builtin_fw; b_fw++) { was getting completely compiled out by my gcc, 7.0.0 20160520. The result was that the loop was going beyond the end of the builtin_fw array and giving me a page fault when trying to dereference