Guest User

Untitled

a guest
Apr 21st, 2018
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
  2. index d88a2fddba8c..1c060748c813 100644
  3. --- a/arch/x86/boot/Makefile
  4. +++ b/arch/x86/boot/Makefile
  5. @@ -100,7 +100,7 @@ $(obj)/zoffset.h: $(obj)/compressed/vmlinux FORCE
  6. AFLAGS_header.o += -I$(objtree)/$(obj)
  7. $(obj)/header.o: $(obj)/zoffset.h
  8.  
  9. -LDFLAGS_setup.elf := -T
  10. +LDFLAGS_setup.elf := -m elf_i386 -T
  11. $(obj)/setup.elf: $(src)/setup.ld $(SETUP_OBJS) FORCE
  12. $(call if_changed,ld)
  13.  
  14. diff --git a/arch/x86/realmode/rm/Makefile b/arch/x86/realmode/rm/Makefile
  15. index 4463fa72db94..96cb20de08af 100644
  16. --- a/arch/x86/realmode/rm/Makefile
  17. +++ b/arch/x86/realmode/rm/Makefile
  18. @@ -47,7 +47,7 @@ $(obj)/pasyms.h: $(REALMODE_OBJS) FORCE
  19. targets += realmode.lds
  20. $(obj)/realmode.lds: $(obj)/pasyms.h
  21.  
  22. -LDFLAGS_realmode.elf := --emit-relocs -T
  23. +LDFLAGS_realmode.elf := -m elf_i386 --emit-relocs -T
  24. CPPFLAGS_realmode.lds += -P -C -I$(objtree)/$(obj)
  25.  
  26. targets += realmode.elf
Add Comment
Please, Sign In to add comment