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
|
@ -31,7 +31,20 @@ Index: lld/ELF/Writer.cpp
|
|||
ElfSym::end1 = add("end", -1);
|
||||
ElfSym::end2 = add("_end", -1);
|
||||
ElfSym::etext1 = add("etext", -1);
|
||||
@@ -883,7 +885,11 @@ static bool isRelroSection(const OutputSection *sec) {
|
||||
@@ -552,6 +554,12 @@ template <class ELFT> void elf::createSyntheticSection
|
||||
in.ibtPlt = make<IBTPltSection>();
|
||||
add(in.ibtPlt);
|
||||
}
|
||||
+#ifdef __OpenBSD__
|
||||
+ else if (config->emachine == EM_X86_64) {
|
||||
+ in.ibtPlt = make<IBTPltSection>();
|
||||
+ add(in.ibtPlt);
|
||||
+ }
|
||||
+#endif
|
||||
|
||||
in.plt = config->emachine == EM_PPC ? make<PPC32GlinkSection>()
|
||||
: make<PltSection>();
|
||||
@@ -883,7 +891,11 @@ static bool isRelroSection(const OutputSection *sec) {
|
||||
// However, if "-z now" is given, the lazy symbol resolution is
|
||||
// disabled, which enables us to put it into RELRO.
|
||||
if (sec == in.gotPlt->getParent())
|
||||
|
@ -43,7 +56,7 @@ Index: lld/ELF/Writer.cpp
|
|||
|
||||
// .dynamic section contains data for the dynamic linker, and
|
||||
// there's no need to write to it at runtime, so it's better to put
|
||||
@@ -1193,6 +1199,9 @@ template <class ELFT> void Writer<ELFT>::setReservedSy
|
||||
@@ -1193,6 +1205,9 @@ template <class ELFT> void Writer<ELFT>::setReservedSy
|
||||
if (ElfSym::bss)
|
||||
ElfSym::bss->section = findSection(".bss");
|
||||
|
||||
|
@ -53,7 +66,7 @@ Index: lld/ELF/Writer.cpp
|
|||
// Setup MIPS _gp_disp/__gnu_local_gp symbols which should
|
||||
// be equal to the _gp symbol's value.
|
||||
if (ElfSym::mipsGp) {
|
||||
@@ -2461,6 +2470,12 @@ std::vector<PhdrEntry *> Writer<ELFT>::createPhdrs(Par
|
||||
@@ -2461,6 +2476,12 @@ std::vector<PhdrEntry *> Writer<ELFT>::createPhdrs(Par
|
||||
addHdr(PT_GNU_EH_FRAME, part.ehFrameHdr->getParent()->getPhdrFlags())
|
||||
->add(part.ehFrameHdr->getParent());
|
||||
|
||||
|
@ -66,7 +79,7 @@ Index: lld/ELF/Writer.cpp
|
|||
// PT_OPENBSD_RANDOMIZE is an OpenBSD-specific feature. That makes
|
||||
// the dynamic linker fill the segment with random data.
|
||||
if (OutputSection *cmd = findSection(".openbsd.randomdata", partNo))
|
||||
@@ -2484,6 +2499,11 @@ std::vector<PhdrEntry *> Writer<ELFT>::createPhdrs(Par
|
||||
@@ -2484,6 +2505,11 @@ std::vector<PhdrEntry *> Writer<ELFT>::createPhdrs(Par
|
||||
if (config->zWxneeded)
|
||||
addHdr(PT_OPENBSD_WXNEEDED, PF_X);
|
||||
|
||||
|
@ -78,7 +91,7 @@ Index: lld/ELF/Writer.cpp
|
|||
if (OutputSection *cmd = findSection(".note.gnu.property", partNo))
|
||||
addHdr(PT_GNU_PROPERTY, PF_R)->add(cmd);
|
||||
|
||||
@@ -2576,6 +2596,31 @@ template <class ELFT> void Writer<ELFT>::fixSectionAli
|
||||
@@ -2576,6 +2602,31 @@ template <class ELFT> void Writer<ELFT>::fixSectionAli
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue