HomeFreeBSD

embed_mfs: support embedding mfs into loader

Description

embed_mfs: support embedding mfs into loader

The script originally supported embedding an mfs into ELF files or any
other type of file, because it searched for magic strings to mark the
beginning and end of the embeddable section. It was later modified to
read the section offset and length via readelf, which made it work for
ELF only. Restore the ability to update arbitrary file types by using
the readelf technique for ELF, and the magic string technique for all
others (including PE/COFF files like loader.efi).

Submitted by: Zakary Nafziger <worldofzak@gmail.com>
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D12746

Details

Provenance
emasteAuthored on Dec 19 2017, 7:44 PM
Parents
rGa0a073b16d0c: Update NFS to handle larger link counts post ino64.
Branches
Unknown
Tags
Unknown

Event Timeline