diff options
| author | James Clarke | 2016-06-06 13:02:50 +0200 |
|---|---|---|
| committer | Michael Tokarev | 2016-06-07 17:19:06 +0200 |
| commit | 6969ec6cfd1293efd16bf9c7c7063b44bc6880ce (patch) | |
| tree | b3215e74647b17ad5a8f68dc51aa3a7b02b31b49 /rules.mak | |
| parent | ppc: Remove a potential overflow in muldiv64() (diff) | |
| download | qemu-6969ec6cfd1293efd16bf9c7c7063b44bc6880ce.tar.gz qemu-6969ec6cfd1293efd16bf9c7c7063b44bc6880ce.tar.xz qemu-6969ec6cfd1293efd16bf9c7c7063b44bc6880ce.zip | |
Fix linking relocatable objects on Sparc
On Sparc, gcc implicitly passes --relax to the linker, but -r is
incompatible with this. Therefore, if --no-relax is supported, it should
be passed to the linker.
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'rules.mak')
| -rw-r--r-- | rules.mak | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -95,7 +95,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 -Wl,-r $(LD_REL_FLAGS) %.mo: $(call quiet-command,$(LD_REL) -o $@ $^," LD -r $(TARGET_DIR)$@") |
