Re: [PATCH 6/7] Add /sys/kernel/notes

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

 



> I'm curios to know what happens if nobody defines __start_notes and
> __end_notes.  We'll use the extern-attribute-weak thing, but those two
> locations won't even get instantiated in vmlinux, I think.
> 
> And the code relies upon the difference between two non-existent
> attribute-weak locations being zero.

The well-defined meaning of weak externs is that they resolve to zero if
undefined.  It relies on zero-zero being zero.  It relies on noone defining
one of __start_notes and __stop_notes but not both.


Thanks,
Roland
-
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