mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
6d03e5523c
Resolves https://github.com/systemd/systemd/issues/31637. lld-18 does the section setup differently than older versions. There is a bunch of ordering chagnes, but it also inserts the following: Sections: Idx Name Size VMA LMA File off Algn ... 9 .got 00000000 00000000000283c0 00000000000283c0 000283c0 2**3 CONTENTS, ALLOC, LOAD, DATA 10 .relro_padding 00000c40 00000000000283c0 00000000000283c0 000283c0 2**0 ALLOC 11 .data 00000024 00000000000293c0 00000000000293c0 000283c0 2**4 CONTENTS, ALLOC, LOAD, DATA ... This causes a problem for us, because we try to map the .got to .rodata, and the subsequent .data to .data, and round down the VMA to the nearest page, which causes the PE sections to overlap. https://github.com/llvm/llvm-project/pull/66042 adds .relro_padding to make sure that the RELRO segment is properly write protected and allocated. For our binaries, the .got section is empty, so we can skip it safely, and the .relro_padding section is not useful once .got has been dropped. We don't expect .got sections, but they are apparently inserted on i386 and aarch64 builds. Emit a warning until we figure out why they are there. |
||
---|---|---|
.. | ||
chromiumos | ||
add-git-hook.sh | ||
analyze-dump-sort.py | ||
catalog-report.py | ||
check-api-docs.sh | ||
check-help.sh | ||
check-includes.py | ||
check-version-history.py | ||
check-version.sh | ||
command_ignorelist | ||
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 | ||
function_ignorelist | ||
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-extract-unit-files.py | ||
meson-render-jinja2.py | ||
oss-fuzz.sh | ||
sync-docs.py | ||
update-dbus-docs.py | ||
update-hwdb-autosuspend.sh | ||
update-hwdb.sh | ||
update-man-rules.py | ||
update-syscall-tables.sh | ||
xml_helper.py |