Skip to content

Commit

Permalink
Enable --local-caprelocs=elf for Morello
Browse files Browse the repository at this point in the history
This is done in bsd.{lib,prog}.mk instead of bsd.cpu.mk as it can't be
turned off for the lib32 build otherwise.
  • Loading branch information
bsdjhb committed Jan 9, 2025
1 parent 8a811da commit c9c2b04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/mk/bsd.lib.mk
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ LDFLAGS+= -Wl,-zbti-report=error
.endif
.endif

.if ${MACHINE_CPUARCH} == "aarch64" && ${MACHINE_CPU:Mcheri}
LDFLAGS+= -Wl,--local-caprelocs=elf
.endif

# Initialize stack variables on function entry
.if ${OPT_INIT_ALL} != "none"
.if ${COMPILER_FEATURES:Minit-all}
Expand Down
4 changes: 4 additions & 0 deletions share/mk/bsd.prog.mk
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ LDFLAGS+= -Wl,-zbti-report=error
.endif
.endif

.if ${MACHINE_CPUARCH} == "aarch64" && ${MACHINE_CPU:Mcheri}
LDFLAGS+= -Wl,--local-caprelocs=elf
.endif

# Initialize stack variables on function entry
.if ${OPT_INIT_ALL} != "none"
.if ${COMPILER_FEATURES:Minit-all}

Check warning on line 93 in share/mk/bsd.prog.mk

View workflow job for this annotation

GitHub Actions / Style Checker

Missing Signed-off-by: line
Expand Down

0 comments on commit c9c2b04

Please sign in to comment.