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,15 +31,7 @@ Index: lld/ELF/Driver.cpp
|
|||
"nocombreloc",
|
||||
"nocopyreloc",
|
||||
"nodefaultlib",
|
||||
@@ -498,6 +510,7 @@ constexpr const char *knownZFlags[] = {
|
||||
"nokeep-text-section-prefix",
|
||||
"nopack-relative-relocs",
|
||||
"norelro",
|
||||
+ "noretpolineplt",
|
||||
"noseparate-code",
|
||||
"nostart-stop-gc",
|
||||
"notext",
|
||||
@@ -1105,8 +1118,6 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
@@ -1105,8 +1117,6 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
errorHandler().errorHandlingScript =
|
||||
args.getLastArgValue(OPT_error_handling_script);
|
||||
|
||||
|
@ -48,7 +40,23 @@ Index: lld/ELF/Driver.cpp
|
|||
config->exportDynamic =
|
||||
args.hasFlag(OPT_export_dynamic, OPT_no_export_dynamic, false) ||
|
||||
args.hasArg(OPT_shared);
|
||||
@@ -1180,7 +1191,12 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
@@ -1124,8 +1134,15 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
config->icf = getICF(args);
|
||||
config->ignoreDataAddressEquality =
|
||||
args.hasArg(OPT_ignore_data_address_equality);
|
||||
+#if defined(__OpenBSD__)
|
||||
+ // Needed to allow preemption of protected symbols (e.g. memcpy) on at least i386.
|
||||
config->ignoreFunctionAddressEquality =
|
||||
+ args.hasFlag(OPT_ignore_function_address_equality,
|
||||
+ OPT_no_ignore_function_address_equality, true);
|
||||
+#else
|
||||
+ config->ignoreFunctionAddressEquality =
|
||||
args.hasArg(OPT_ignore_function_address_equality);
|
||||
+#endif
|
||||
config->init = args.getLastArgValue(OPT_init, "_init");
|
||||
config->ltoAAPipeline = args.getLastArgValue(OPT_lto_aa_pipeline);
|
||||
config->ltoCSProfileGenerate = args.hasArg(OPT_lto_cs_profile_generate);
|
||||
@@ -1180,7 +1197,12 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
config->orphanHandling = getOrphanHandling(args);
|
||||
config->outputFile = args.getLastArgValue(OPT_o);
|
||||
config->packageMetadata = args.getLastArgValue(OPT_package_metadata);
|
||||
|
@ -61,7 +69,16 @@ Index: lld/ELF/Driver.cpp
|
|||
config->printIcfSections =
|
||||
args.hasFlag(OPT_print_icf_sections, OPT_no_print_icf_sections, false);
|
||||
config->printGcSections =
|
||||
@@ -1270,6 +1286,7 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
@@ -1248,7 +1270,7 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
config->trace = args.hasArg(OPT_trace);
|
||||
config->undefined = args::getStrings(args, OPT_undefined);
|
||||
config->undefinedVersion =
|
||||
- args.hasFlag(OPT_undefined_version, OPT_no_undefined_version, false);
|
||||
+ args.hasFlag(OPT_undefined_version, OPT_no_undefined_version, true);
|
||||
config->unique = args.hasArg(OPT_unique);
|
||||
config->useAndroidRelrTags = args.hasFlag(
|
||||
OPT_use_android_relr_tags, OPT_no_use_android_relr_tags, false);
|
||||
@@ -1270,6 +1292,7 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
config->zInterpose = hasZOption(args, "interpose");
|
||||
config->zKeepTextSectionPrefix = getZFlag(
|
||||
args, "keep-text-section-prefix", "nokeep-text-section-prefix", false);
|
||||
|
@ -69,20 +86,7 @@ Index: lld/ELF/Driver.cpp
|
|||
config->zNodefaultlib = hasZOption(args, "nodefaultlib");
|
||||
config->zNodelete = hasZOption(args, "nodelete");
|
||||
config->zNodlopen = hasZOption(args, "nodlopen");
|
||||
@@ -1277,7 +1294,11 @@ static void readConfigs(opt::InputArgList &args) {
|
||||
config->zOrigin = hasZOption(args, "origin");
|
||||
config->zPacPlt = hasZOption(args, "pac-plt");
|
||||
config->zRelro = getZFlag(args, "relro", "norelro", true);
|
||||
- config->zRetpolineplt = hasZOption(args, "retpolineplt");
|
||||
+#ifndef __OpenBSD__
|
||||
+ config->zRetpolineplt = getZFlag(args, "retpolineplt", "noretpolineplt", false);
|
||||
+#else
|
||||
+ config->zRetpolineplt = getZFlag(args, "retpolineplt", "noretpolineplt", true);
|
||||
+#endif
|
||||
config->zRodynamic = hasZOption(args, "rodynamic");
|
||||
config->zSeparate = getZSeparate(args);
|
||||
config->zShstk = hasZOption(args, "shstk");
|
||||
@@ -1582,6 +1603,23 @@ static void setConfigs(opt::InputArgList &args) {
|
||||
@@ -1582,6 +1605,23 @@ static void setConfigs(opt::InputArgList &args) {
|
||||
args.hasFlag(OPT_toc_optimize, OPT_no_toc_optimize, m == EM_PPC64);
|
||||
config->pcRelOptimize =
|
||||
args.hasFlag(OPT_pcrel_optimize, OPT_no_pcrel_optimize, m == EM_PPC64);
|
||||
|
@ -106,7 +110,7 @@ Index: lld/ELF/Driver.cpp
|
|||
}
|
||||
|
||||
static bool isFormatBinary(StringRef s) {
|
||||
@@ -1721,7 +1759,7 @@ void LinkerDriver::inferMachineType() {
|
||||
@@ -1721,7 +1761,7 @@ void LinkerDriver::inferMachineType() {
|
||||
}
|
||||
|
||||
// Parse -z max-page-size=<value>. The default value is defined by
|
||||
|
@ -115,7 +119,7 @@ Index: lld/ELF/Driver.cpp
|
|||
static uint64_t getMaxPageSize(opt::InputArgList &args) {
|
||||
uint64_t val = args::getZOptionValue(args, OPT_z, "max-page-size",
|
||||
target->defaultMaxPageSize);
|
||||
@@ -1738,7 +1776,7 @@ static uint64_t getMaxPageSize(opt::InputArgList &args
|
||||
@@ -1738,7 +1778,7 @@ static uint64_t getMaxPageSize(opt::InputArgList &args
|
||||
}
|
||||
|
||||
// Parse -z common-page-size=<value>. The default value is defined by
|
||||
|
@ -124,7 +128,7 @@ Index: lld/ELF/Driver.cpp
|
|||
static uint64_t getCommonPageSize(opt::InputArgList &args) {
|
||||
uint64_t val = args::getZOptionValue(args, OPT_z, "common-page-size",
|
||||
target->defaultCommonPageSize);
|
||||
@@ -1757,6 +1795,16 @@ static uint64_t getCommonPageSize(opt::InputArgList &a
|
||||
@@ -1757,6 +1797,16 @@ static uint64_t getCommonPageSize(opt::InputArgList &a
|
||||
return val;
|
||||
}
|
||||
|
||||
|
@ -141,7 +145,7 @@ Index: lld/ELF/Driver.cpp
|
|||
// Parses --image-base option.
|
||||
static std::optional<uint64_t> getImageBase(opt::InputArgList &args) {
|
||||
// Because we are using "Config->maxPageSize" here, this function has to be
|
||||
@@ -2784,6 +2832,11 @@ void LinkerDriver::link(opt::InputArgList &args) {
|
||||
@@ -2784,6 +2834,11 @@ void LinkerDriver::link(opt::InputArgList &args) {
|
||||
// optimizations such as DATA_SEGMENT_ALIGN in linker scripts. LLD's use of it
|
||||
// is limited to writing trap instructions on the last executable segment.
|
||||
config->commonPageSize = getCommonPageSize(args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue