@@ -1219,22 +1219,20 @@ template <class ELFT> void ObjFile<ELFT>::importCmseSymbols() {
12191219 sym->stOther = eSym.st_other ;
12201220
12211221 if (eSym.st_shndx != SHN_ABS) {
1222- ErrAlways (ctx) << " CMSE symbol '" << sym->getName ()
1223- << " ' in import library ' " << this << " ' is not absolute" ;
1222+ Err (ctx) << " CMSE symbol '" << sym->getName () << " ' in import library ' "
1223+ << this << " ' is not absolute" ;
12241224 continue ;
12251225 }
12261226
12271227 if (!(eSym.st_value & 1 ) || (eSym.getType () != STT_FUNC)) {
1228- ErrAlways (ctx) << " CMSE symbol '" << sym->getName ()
1229- << " ' in import library '" << this
1230- << " ' is not a Thumb function definition" ;
1228+ Err (ctx) << " CMSE symbol '" << sym->getName () << " ' in import library '"
1229+ << this << " ' is not a Thumb function definition" ;
12311230 continue ;
12321231 }
12331232
12341233 if (ctx.symtab ->cmseImportLib .count (sym->getName ())) {
1235- ErrAlways (ctx) << " CMSE symbol '" << sym->getName ()
1236- << " ' is multiply defined in import library '" << this
1237- << " '" ;
1234+ Err (ctx) << " CMSE symbol '" << sym->getName ()
1235+ << " ' is multiply defined in import library '" << this << " '" ;
12381236 continue ;
12391237 }
12401238
@@ -1289,8 +1287,7 @@ void elf::processArmCmseSymbols(Ctx &ctx) {
12891287 // If input object build attributes do not support CMSE, error and disable
12901288 // further scanning for <sym>, __acle_se_<sym> pairs.
12911289 if (!ctx.arg .armCMSESupport ) {
1292- ErrAlways (ctx)
1293- << " CMSE is only supported by ARMv8-M architecture or later" ;
1290+ Err (ctx) << " CMSE is only supported by ARMv8-M architecture or later" ;
12941291 ctx.arg .cmseImplib = false ;
12951292 break ;
12961293 }
@@ -1300,17 +1297,16 @@ void elf::processArmCmseSymbols(Ctx &ctx) {
13001297 StringRef name = acleSeSym->getName ().substr (std::strlen (ACLESESYM_PREFIX));
13011298 Symbol *sym = ctx.symtab ->find (name);
13021299 if (!sym) {
1303- ErrAlways (ctx)
1304- << acleSeSym->file << " : cmse special symbol '"
1305- << acleSeSym->getName ()
1306- << " ' detected, but no associated entry function definition '" << name
1307- << " ' with external linkage found" ;
1300+ Err (ctx) << acleSeSym->file << " : cmse special symbol '"
1301+ << acleSeSym->getName ()
1302+ << " ' detected, but no associated entry function definition '"
1303+ << name << " ' with external linkage found" ;
13081304 continue ;
13091305 }
13101306
13111307 std::string errMsg = checkCmseSymAttributes (ctx, acleSeSym, sym);
13121308 if (!errMsg.empty ()) {
1313- ErrAlways (ctx) << errMsg;
1309+ Err (ctx) << errMsg;
13141310 continue ;
13151311 }
13161312
@@ -1496,8 +1492,8 @@ template <typename ELFT> void elf::writeARMCmseImportLib(Ctx &ctx) {
14961492 Expected<std::unique_ptr<FileOutputBuffer>> bufferOrErr =
14971493 FileOutputBuffer::create (ctx.arg .cmseOutputLib , fileSize, flags);
14981494 if (!bufferOrErr) {
1499- ErrAlways (ctx) << " failed to open " << ctx.arg .cmseOutputLib << " : "
1500- << bufferOrErr.takeError ();
1495+ Err (ctx) << " failed to open " << ctx.arg .cmseOutputLib << " : "
1496+ << bufferOrErr.takeError ();
15011497 return ;
15021498 }
15031499
0 commit comments