@@ -345,22 +345,6 @@ static void checkOptions() {
345345 if (config->emachine == EM_MIPS && config->gnuHash )
346346 error (" the .gnu.hash section is not compatible with the MIPS target" );
347347
348- if (config->emachine == EM_ARM) {
349- if (!config->cmseImplib ) {
350- if (!config->cmseInputLib .empty ())
351- error (" --in-implib may not be used without --cmse-implib" );
352- if (!config->cmseOutputLib .empty ())
353- error (" --out-implib may not be used without --cmse-implib" );
354- }
355- } else {
356- if (config->cmseImplib )
357- error (" --cmse-implib is only supported on ARM targets" );
358- if (!config->cmseInputLib .empty ())
359- error (" --in-implib is only supported on ARM targets" );
360- if (!config->cmseOutputLib .empty ())
361- error (" --out-implib is only supported on ARM targets" );
362- }
363-
364348 if (config->fixCortexA53Errata843419 && config->emachine != EM_AARCH64)
365349 error (" --fix-cortex-a53-843419 is only supported on AArch64 targets" );
366350
@@ -1177,9 +1161,6 @@ static void readConfigs(opt::InputArgList &args) {
11771161 config->fini = args.getLastArgValue (OPT_fini, " _fini" );
11781162 config->fixCortexA53Errata843419 = args.hasArg (OPT_fix_cortex_a53_843419) &&
11791163 !args.hasArg (OPT_relocatable);
1180- config->cmseImplib = args.hasArg (OPT_cmse_implib);
1181- config->cmseInputLib = args.getLastArgValue (OPT_in_implib);
1182- config->cmseOutputLib = args.getLastArgValue (OPT_out_implib);
11831164 config->fixCortexA8 =
11841165 args.hasArg (OPT_fix_cortex_a8) && !args.hasArg (OPT_relocatable);
11851166 config->fortranCommon =
@@ -1759,12 +1740,6 @@ void LinkerDriver::createFiles(opt::InputArgList &args) {
17591740 files.back ()->justSymbols = true ;
17601741 }
17611742 break ;
1762- case OPT_in_implib:
1763- if (armCmseImpLib)
1764- error (" multiple CMSE import libraries not supported" );
1765- else if (std::optional<MemoryBufferRef> mb = readFile (arg->getValue ()))
1766- armCmseImpLib = createObjFile (*mb);
1767- break ;
17681743 case OPT_start_group:
17691744 if (InputFile::isInGroup)
17701745 error (" nested --start-group" );
@@ -2644,8 +2619,6 @@ void LinkerDriver::link(opt::InputArgList &args) {
26442619 llvm::TimeTraceScope timeScope (" Parse input files" , files[i]->getName ());
26452620 parseFile (files[i]);
26462621 }
2647- if (armCmseImpLib)
2648- parseArmCMSEImportLib (*armCmseImpLib);
26492622 }
26502623
26512624 // Now that we have every file, we can decide if we will need a
@@ -2810,9 +2783,6 @@ void LinkerDriver::link(opt::InputArgList &args) {
28102783 if (args.hasArg (OPT_exclude_libs))
28112784 excludeLibs (args);
28122785
2813- // Record [__acle_se_<sym>, <sym>] pairs for later processing.
2814- processArmCmseSymbols ();
2815-
28162786 // Apply symbol renames for --wrap and combine foo@v1 and foo@@v1.
28172787 redirectSymbols (wrapped);
28182788
0 commit comments