boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

note-section-sht-note.after (352B)


      1     /* AT.2: .note* sections must have SHT_NOTE so a PT_NOTE phdr can
      2      * point at them; PVH boot scans .note.Xen for the 18 entry. All
      3      * other implicitly-created sections stay PROGBITS. */
      4     if (!strncmp(name, ".note", 5))
      5         return new_section(s1, name, SHT_NOTE, SHF_ALLOC);
      6     return new_section(s1, name, SHT_PROGBITS, SHF_ALLOC);