diff options
author | Isaac David <isacdaavid@isacdaavid.info> | 2017-08-01 22:44:01 -0500 |
---|---|---|
committer | Isaac David <isacdaavid@isacdaavid.info> | 2017-08-01 22:44:01 -0500 |
commit | 613a15e6f7ed4b1b866e19281f242bd281a09385 (patch) | |
tree | ee94af08859d06be6c7c1c9c70453af9c22d6d14 /pcr/xen/patch-gcc7-minios-udivmod.patch | |
parent | 9b386e1af5999de0a930296361b107f85c953d58 (diff) | |
download | abslibre-613a15e6f7ed4b1b866e19281f242bd281a09385.tar.gz abslibre-613a15e6f7ed4b1b866e19281f242bd281a09385.tar.bz2 abslibre-613a15e6f7ed4b1b866e19281f242bd281a09385.zip |
pcr-testing/xen: moving it to standard pcr
Diffstat (limited to 'pcr/xen/patch-gcc7-minios-udivmod.patch')
-rw-r--r-- | pcr/xen/patch-gcc7-minios-udivmod.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pcr/xen/patch-gcc7-minios-udivmod.patch b/pcr/xen/patch-gcc7-minios-udivmod.patch new file mode 100644 index 000000000..868e63c20 --- /dev/null +++ b/pcr/xen/patch-gcc7-minios-udivmod.patch @@ -0,0 +1,31 @@ +gcc7 generates a call to __udivmoddi4 ... + +stubdom/mini-os-x86_32-grub/mini-os.o: In function `_strtoll_r': +stubdom/newlib-x86_32/i686-xen-elf/newlib/libc/stdlib/../../../../../newlib-1.16.0/newlib/libc/stdlib/strtoll_r.c:110: undefined reference to `__udivmoddi4' +make[2]: *** [Makefile:167: stubdom/mini-os-x86_32-grub/mini-os] Error 1 + +... which the linker only finds if libgcc.a is provided on the commandline. + +Signed-off-by: Olaf Hering <olaf@aepfle.de> +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index ef8559b..b9c1336 100644 +--- a/Makefile ++++ b/Makefile +@@ -162,7 +162,7 @@ $(OBJ_DIR)/arch/x86/minios-x86%.lds: arch/x86/minios-x86.lds.S + $(CPP) $(ASFLAGS) -P $< -o $@ + + $(OBJ_DIR)/$(TARGET): $(OBJS) $(APP_O) arch_lib $(OBJ_DIR)/$(TARGET_ARCH_DIR)/minios-$(MINIOS_TARGET_ARCH).lds +- $(LD) -r $(LDFLAGS) $(HEAD_OBJ) $(APP_O) $(OBJS) $(LDARCHLIB) $(LDLIBS) -o $@.o ++ $(LD) -r $(LDFLAGS) $(HEAD_OBJ) $(APP_O) $(OBJS) $(LDARCHLIB) $(LDLIBS) $$(gcc -print-libgcc-file-name $(CFLAGS)) -o $@.o + $(OBJCOPY) -w -G $(GLOBAL_PREFIX)* -G _start $@.o $@.o + $(LD) $(LDFLAGS) $(LDFLAGS_FINAL) $@.o $(EXTRA_OBJS) -o $@ + gzip -f -9 -c $@ >$@.gz + +_______________________________________________ +Xen-devel mailing list +Xen-devel@lists.xen.org +https://lists.xen.org/xen-devel |