Code changes between llvm 13 and 16 mean that we have to drop the final dot
authorkettenis <kettenis@openbsd.org>
Mon, 20 Nov 2023 10:11:03 +0000 (10:11 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 20 Nov 2023 10:11:03 +0000 (10:11 +0000)
for the .openbsd.randomdata and .openbsd.mutable section merging code.

ok jca@

gnu/llvm/lld/ELF/LinkerScript.cpp

index 24e4ae6..0fe9433 100644 (file)
@@ -104,7 +104,7 @@ static StringRef getOutputSectionName(const InputSectionBase *s) {
        {".data.rel.ro", ".data", ".rodata", ".bss.rel.ro", ".bss",
         ".gcc_except_table", ".init_array", ".fini_array", ".tbss", ".tdata",
         ".ARM.exidx", ".ARM.extab", ".ctors", ".dtors",
-        ".openbsd.randomdata.", ".openbsd.mutable."})
+        ".openbsd.randomdata", ".openbsd.mutable"})
     if (isSectionPrefix(v, s->name))
       return v;