Skip to content

Commit 1bbd0d9

Browse files
committed
Compile .ll with -relocation-model=pic option
1 parent 106d01a commit 1bbd0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/rt.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.S $$(MKFILE_DEPS) \
117117
$$(RT_BUILD_DIR_$(1)_$(2))/%.o: rt/%.ll $$(MKFILE_DEPS) \
118118
$$(LLVM_CONFIG_$$(CFG_BUILD))
119119
@$$(call E, compile: $$@)
120-
$$(Q)$(LLC_$(CFG_BUILD)) -filetype=obj -o $$@ $$< -mtriple=$(1)
120+
$$(Q)$(LLC_$(CFG_BUILD)) -filetype=obj -mtriple=$(1) -relocation-model=pic -o $$@ $$<
121121

122122
$$(RT_BUILD_DIR_$(1)_$(2))/arch/$$(HOST_$(1))/libmorestack.a: $$(MORESTACK_OBJS_$(1)_$(2))
123123
@$$(call E, link: $$@)

0 commit comments

Comments
 (0)