Re: [PATCH] Tell modpost that any reference from .note* is OK

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

 



Sam Ravnborg wrote:
> On Tue, May 29, 2007 at 01:33:20PM -0700, Jeremy Fitzhardinge wrote:
>   
>> .note* sections are ELF notes, which are typically used by external
>> tools to examine the kernel image.  Since this is removed from any
>> runtime consideration, it's OK to reference any section from a .note*
>> section.
>>
>> As a side-effect, this changes secref_whitelist to accept a NULL "atsym"
>> pointer, allowing it to be called when "before" is NULL.  This is
>> needed for .note sections since they don't necessarily have any
>> symbols, and it also allows the .got2 check to to be folded into the
>> normal whitelist checks.
>>     
>
> I did it a bit different. Adding .note to init_section_ref_ok +
> exit_section_ref_ok is much simpler.
> Next patch will move .got2 there too.
>   

Oh, yeah, that's simpler.  OK.

    J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux