summaryrefslogtreecommitdiffstats
path: root/patches/qemu-xmount/01-fix_ld_pie_relocateable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/qemu-xmount/01-fix_ld_pie_relocateable.patch')
-rw-r--r--patches/qemu-xmount/01-fix_ld_pie_relocateable.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/qemu-xmount/01-fix_ld_pie_relocateable.patch b/patches/qemu-xmount/01-fix_ld_pie_relocateable.patch
new file mode 100644
index 00000000..c85a8f55
--- /dev/null
+++ b/patches/qemu-xmount/01-fix_ld_pie_relocateable.patch
@@ -0,0 +1,14 @@
+diff --git a/rules.mak b/rules.mak
+index 4551b9ea70..019d6c7691 100644
+--- a/rules.mak
++++ b/rules.mak
+@@ -111,7 +111,7 @@ module-common.o: CFLAGS += $(DSO_OBJ_CFLAGS)
+ $(if $(findstring /,$@),$(call quiet-command,cp $@ $(subst /,-,$@), " CP $(subst /,-,$@)"))
+
+
+-LD_REL := $(CC) -nostdlib -Wl,-r
++LD_REL := $(CC) -nostdlib -r
+
+ %.mo:
+ $(call quiet-command,$(LD_REL) -o $@ $^," LD -r $(TARGET_DIR)$@")
+