NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm32/40309: kmods don't work for ARM hosts



>Number:         40309
>Category:       port-arm32
>Synopsis:       kmods don't work for ARM hosts
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-arm32-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 01 01:15:00 +0000 2009
>Originator:     Lloyd Parkes
>Release:        5.99.5
>Organization:
Must Have Coffee
>Environment:
NetBSD evbarm 5.99.5 NetBSD 5.99.5 (TS7200_SMALL) #2: Thu Jan  1 13:58:00 NZDT 
2009  
lloyd%maro.must-have-coffee.gen.nz@localhost:/vol/scratch/obj/evbarm/sys/arch/evbarm/compile/TS7200_SMALL
 evbarm
>Description:
When running a kernel with "options MODULAR" it generates traps and panics as 
soon as it tries to load a module. This is due to various failings in 
sys/arch/arm/arm32/kobj_machdep.c:kobj_reloc().

In particular, the code for R_ARM_ABS32 fails to take addend in to account, and 
the code for R_ARM_PC24 fails to exist.

Some of the other code was a bit randomly structured (inconsistent coding 
styles).


>How-To-Repeat:
Build kernel and boot.
>Fix:
See http://www.must-have-coffee.gen.nz/kobj_arm.diff.




Home | Main Index | Thread Index | Old Index