mirror of
https://github.com/systemd/systemd
synced 2024-07-23 11:14:59 +00:00
![]() The main reason we need to apply a whole lot of logic to the section conversion logic is because PE sections have to be aligned to the page size (although, currently not even EDK2 enforces this). The process of achieving this with a linker script is fraught with errors, they are a pain to set up correctly and suck in general. They are also not supported by mold, which requires us to forcibly use bfd, which also means that linker feature detection is easily at odds as meson has a differnt idea of what linker is in use. Instead of forcing a manual ELF segment layout with a linker script we just let the linker do its thing. We then simply copy/concatenate the sections while observing proper page boundaries. Note that we could just copy the ELF load *segments* directly and achieve the same result. Doing this manually allows us to strip sections we don't need at runtime like the dynamic linking information (the elf2efi conversion is effectively the dynamic loader). Important sections like .sbat that we emit directly from code will currently *not* be exposed as individual PE sections as they are contained within the ELF segments. A future commit will fix this. |
||
---|---|---|
.. | ||
chromiumos | ||
add-git-hook.sh | ||
analyze-dump-sort.py | ||
catalog-report.py | ||
check-api-docs.sh | ||
check-help.sh | ||
check-includes.py | ||
check-version.sh | ||
coverity.sh | ||
dbus_exporter.py | ||
dbus_ignorelist | ||
debug-sd-boot.sh | ||
dump-auxv.py | ||
elf2efi.py | ||
find-build-dir.sh | ||
find-double-newline.sh | ||
find-tabs.sh | ||
gdb-sd_dump_hashmaps.py | ||
generate-gperfs.py | ||
git-contrib.sh | ||
list-discoverable-partitions.py | ||
make-autosuspend-rules.py | ||
make-directive-index.py | ||
make-man-index.py | ||
meson-build.sh | ||
meson-render-jinja2.py | ||
meson-vcs-tag.sh | ||
oss-fuzz.sh | ||
update-dbus-docs.py | ||
update-hwdb-autosuspend.sh | ||
update-hwdb.sh | ||
update-man-rules.py | ||
update-syscall-tables.sh | ||
xml_helper.py |