@@ -950,12 +950,12 @@ static void addPltEntry(Ctx &ctx, PltSection &plt, GotPltSection &gotPlt,
950950 if (!sym.isPreemptible ) {
951951 addRelativeCapabilityRelocation (ctx, gotPlt, sym.getGotPltOffset (ctx),
952952 &sym, 0 , R_ABS_CAP,
953- *ctx.target ->cheriCapRel );
953+ *ctx.target ->symbolicCapRel );
954954 return ;
955955 }
956956
957957 addRelativeCapabilityRelocation (ctx, gotPlt, sym.getGotPltOffset (ctx), &plt,
958- 0 , R_ABS_CAP, *ctx.target ->cheriCapRel );
958+ 0 , R_ABS_CAP, *ctx.target ->symbolicCapRel );
959959 }
960960
961961 rel.addReloc ({type, &gotPlt, sym.getGotPltOffset (ctx),
@@ -978,7 +978,9 @@ void elf::addGotEntry(Ctx &ctx, Symbol &sym) {
978978 }
979979
980980 RelType type =
981- ctx.arg .isCheriAbi ? *ctx.target ->cheriCapRel : ctx.target ->symbolicRel ;
981+
982+ ctx.arg .isCheriAbi ? *ctx.target ->symbolicCapRel
983+ : ctx.target ->symbolicRel ;
982984
983985 // Otherwise, the value is either a link-time constant or the load base
984986 // plus a constant. For CHERI it always requires run-time initialisation,
@@ -1244,7 +1246,8 @@ void RelocationScanner::processAux(RelExpr expr, RelType type, uint64_t offset,
12441246 if (canWrite) {
12451247 RelType rel = ctx.target ->getDynRel (type);
12461248 if (oneof<R_GOT, RE_LOONGARCH_GOT>(expr) ||
1247- ((rel == ctx.target ->symbolicRel || rel == ctx.target ->cheriCapRel ) &&
1249+ ((rel == ctx.target ->symbolicRel ||
1250+ rel == ctx.target ->symbolicCapRel ) &&
12481251 !sym.isPreemptible )) {
12491252 addRelativeReloc<true >(ctx, *sec, offset, sym, addend, expr, type);
12501253 return ;
0 commit comments