- I encountered a big problem that U-Boot 1.1.4
compiled by ELDK 4.1 for MPC82xx crashed.
But if I build it using gcc-3.4.6 based cross tools, U-Boot on my board boots correctly.
The same U-Boot code built by ELDK 4.1 (gcc-4.0) failed, nothing occurs on the serial port.
- This is often a missing
volatileattribute on shared variable references, particularly hardware registers. Newer compiler versions optimize more aggressively, making missing
If you use -O0 (no optimization) does it fix the problem?
If it does, it most likely is an optimization/volatile issue. The hard part figuring out where. Device handling and board-specific code is the place to start.
|14.2.9. Porting Problem: cannot move location counter backwards||1. Abstract||14.2.11. How Can I Reduce The Image Size?|