altinstructions and non-core texts

From: Dannie Stanley <hidden>
Date: 2012-01-23 22:18:45

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help