altinstructions and non-core texts

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

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux