Section mismatches aren't detected for Thumb2 kernels

Bug #1130776 reported by Tixy (Jon Medhurst)
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Linux
Deepak Saxena

Bug Description

This is because modpost.c doesn't have support for any of the Thumb relocation types in addend_arm_rel(). (There may be other issues as well.)

Linus Walleij (triad)
Changed in linux-linaro:
assignee: nobody → Ulf Hansson (ulf-hansson)
Revision history for this message
Jakub Pavelek (jakub-pavelek) wrote :

Not really Ulf's territory - would need to spend time (hours) to even give us idea of how much work this is. Moving over to Deepak for re-assignment.

Changed in linux-linaro:
assignee: Ulf Hansson (ulf-hansson) → Deepak Saxena (dsaxena-linaro)
Revision history for this message
David Long (dave-long) wrote :

By experimentation I found that only R_ARM_THM_CALL, R_ARM_THM_JUMP24, and R_ARM_THM_JUMP19 appear to need handling to fix this. These relocation types all have the same addend formula as the currently supported ARM relocation types. Just accepting the above types in the relevant code makes my test case detect a section mismatch in a thumb kernel build. The proposed patch is attached.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.