kernel using gcc-5.3 fails to boot right

Adrian Chadd adrian at freebsd.org
Thu Aug 18 02:29:10 UTC 2016


thanks to warner, I went looking at relocation tables.

It stems from how we're doing LO16/HI16 - we expect HI first, then LO
- then we update where_hi16. This .. doesn't work in the new world.

eg:

0000bf9c R_MIPS_HI16       ctl3_lock
0000bfa0 R_MIPS_LO16       ctl3_lock
0000bfa8 R_MIPS_HI16       M_IPFW
0000bfac R_MIPS_LO16       M_IPFW
0000bfb8 R_MIPS_LO16       .bss
0000bfa4 R_MIPS_HI16       __mtx_unlock_flags
0000bfcc R_MIPS_LO16       __mtx_unlock_flags


-adrian


More information about the freebsd-mips mailing list