altinstructions and non-core texts

Dannie Stanley dannie.stanley at gmail.com
Mon Jan 23 17:18:45 EST 2012


Regarding the source code for kernel version 2.6.38. Alternative
instructions are extracted from the module's ELF section
.altinstructions. The struct alt_instr has a member instr which seems
to correspond to an offset in the text in the cases that I have seen.
My question:

  Q1: Do .altinstructions get applied to sections other than .text?

  Q2: If yes to Q1, how do I know when an alt_instr applies to another section?

(by the way, a similar question may apply in the case of jump_labels
and smp_locks, so feel free to comment on those as well)

Thanks!
Dannie

-- 
Dannie M. Stanley



More information about the Kernelnewbies mailing list