As we discussed in the last meeting, we reset the ports tree and began from scratch, even though this change involves porting all the packages. Starting small and growing gradually, this approach will reduce build times and consequently lower energy consumption in a world affected by climate change. We will add new ports as users needs arise; ok h3artbl33d@
This commit is contained in:
parent
83a0aaf92c
commit
9a3af55370
59377 changed files with 98673 additions and 4712155 deletions
33
devel/llvm/17/patches/patch-lld_ELF_LinkerScript_cpp
Normal file
33
devel/llvm/17/patches/patch-lld_ELF_LinkerScript_cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
Index: lld/ELF/LinkerScript.cpp
|
||||
--- lld/ELF/LinkerScript.cpp.orig
|
||||
+++ lld/ELF/LinkerScript.cpp
|
||||
@@ -103,7 +103,8 @@ static StringRef getOutputSectionName(const InputSecti
|
||||
for (StringRef v :
|
||||
{".data.rel.ro", ".data", ".rodata", ".bss.rel.ro", ".bss", ".ldata",
|
||||
".lrodata", ".lbss", ".gcc_except_table", ".init_array", ".fini_array",
|
||||
- ".tbss", ".tdata", ".ARM.exidx", ".ARM.extab", ".ctors", ".dtors"})
|
||||
+ ".tbss", ".tdata", ".ARM.exidx", ".ARM.extab", ".ctors", ".dtors",
|
||||
+ ".openbsd.randomdata", ".openbsd.mutable"})
|
||||
if (isSectionPrefix(v, s->name))
|
||||
return v;
|
||||
|
||||
@@ -998,6 +999,10 @@ void LinkerScript::assignOffsets(OutputSection *sec) {
|
||||
sec->name);
|
||||
}
|
||||
|
||||
+ // This section was previously a call to switchTo(), but switchTo()
|
||||
+ // was unrolled here.
|
||||
+ // On OpenBSD, we had consistently moved the call to switchTo()
|
||||
+ // below the next section.
|
||||
state->outSec = sec;
|
||||
if (sec->addrExpr && script->hasSectionsCommand) {
|
||||
// The alignment is ignored.
|
||||
@@ -1027,6 +1032,8 @@ void LinkerScript::assignOffsets(OutputSection *sec) {
|
||||
} else if (!sameMemRegion || !prevLMARegionIsDefault) {
|
||||
state->lmaOffset = 0;
|
||||
}
|
||||
+
|
||||
+ // On OpenBSD, the switchTo() call was here.
|
||||
|
||||
// Propagate state->lmaOffset to the first "non-header" section.
|
||||
if (PhdrEntry *l = sec->ptLoad)
|
Loading…
Add table
Add a link
Reference in a new issue