Skip to content

Commit

Permalink
lld: Enable the --local-caprelocs=legacy command line argument
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdjhb committed Jan 9, 2025
1 parent f5b7b49 commit 6e63740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/ELF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ static CapTableScopePolicy getCapTableScope(opt::InputArgList &args) {

static CapRelocsMode getLocalCapRelocsMode(opt::InputArgList &args) {
auto *arg =
args.getLastArg(OPT_local_caprelocs_cbuildcap, OPT_local_caprelocs_elf,
args.getLastArg(OPT_local_caprelocs_legacy, OPT_local_caprelocs_elf,
OPT_local_caprelocs_cbuildcap);
if (!arg) // TODO: change default to CBuildCap (at least for non-PIC)
return CapRelocsMode::Legacy;
Expand Down

0 comments on commit 6e63740

Please sign in to comment.