Section mismatches aren't detected for Thumb2 kernels

Bug #1130776 reported by Tixy (Jon Medhurst) on 2013-02-20
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Linux
New
Undecided
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) on 2013-09-16
Changed in linux-linaro:
assignee: nobody → Ulf Hansson (ulf-hansson)
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)
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  Edit
Everyone can see this information.

Other bug subscribers