svn commit: r357231 - projects/clang1000-import/stand/i386/gptboot

Dimitry Andric dim at FreeBSD.org
Tue Jan 28 21:41:38 UTC 2020


Author: dim
Date: Tue Jan 28 21:41:37 2020
New Revision: 357231
URL: https://svnweb.freebsd.org/changeset/base/357231

Log:
  Work around assembler error from clang 10.0.0 in gptboot:
  
  stand/i386/gptboot/gptldr.S:141:3: error: value of 36878 is too large for field of 2 bytes.
    jmp MEM_JMP # Start BTX
    ^
  
  Use the same construct as in stand/i386/boot2/boot1.S, which ensures the
  jump distance does not become too large.
  
  MFC after:	3 days

Modified:
  projects/clang1000-import/stand/i386/gptboot/gptldr.S

Modified: projects/clang1000-import/stand/i386/gptboot/gptldr.S
==============================================================================
--- projects/clang1000-import/stand/i386/gptboot/gptldr.S	Tue Jan 28 20:56:40 2020	(r357230)
+++ projects/clang1000-import/stand/i386/gptboot/gptldr.S	Tue Jan 28 21:41:37 2020	(r357231)
@@ -138,5 +138,5 @@ seta20.3:	sti				# Enable interrupts
  * Save drive number from BIOS so boot2 can see it and start BTX.
  */
 		movb %dl,MEM_ARG
-		jmp MEM_JMP			# Start BTX
+		jmp start+MEM_JMP-MEM_ORG	# Start BTX
 end:


More information about the svn-src-projects mailing list