lkml.org 
[lkml]   [2010]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 7/9] jump label: sort jump table at build-time
Date
I think it just happens to come out harmless.  The relocs.c extraction
stuff doesn't actually care about the exact address to be relocated, it
only needs to know that a relocated value sits at a given place in the
binary. The sorting rearranges the addresses in the text without
rearranging their corresponding relocs, but it's still the case that at
exactly each of those spots in text there is a relocated address. The
boot-time "relocation" is just a blind adjustment to all those spots,
without reference to the original relocation details. So it Just Works.
I'm not at all sure this is how we want things to be. It's rather
nonobvious and fragile if we change any of the related magic. But I think
it is entirely reliable in today's code that it will do the right thing.


Thanks,
Roland


\
 
 \ /
  Last update: 2010-04-09 23:35    [W:0.031 / U:23.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site