If you compile a simple hello world driver, you will see that the "Cannot use pages" flag will be set in the PE (Portable Executable) section called ".text". So yes, by default, all driver code is in this section, if you do not mark it as accessible for the page, which will lead to its completion in the "PAGE" section, and not in the ".text" section.
source share