[ipxe-devel] Error: .size expression does not evaluate to a constant

Bastian Blank waldi at debian.org
Wed Mar 16 14:44:33 UTC 2011


Hi

ipxe fails to build with current binutils:

arch/i386/prefix/linuxprefix.S: Assembler messages:
arch/i386/prefix/linuxprefix.S:28: Error: .size expression does not evaluate to a constant
arch/i386/prefix/nbiprefix.S: Assembler messages:
arch/i386/prefix/nbiprefix.S:78: Error: .size expression does not evaluate to a constant

Attached is a possible fix.

Bastian

From: Bastian Blank <waldi at debian.org>
Date: Wed, 16 Mar 2011 13:49:51 +0100
Subject: Fix assembler errors

Signed-off-by: Bastian Blank <waldi at debian.org>
---
 src/arch/i386/prefix/linuxprefix.S |    2 +-
 src/arch/i386/prefix/nbiprefix.S   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/arch/i386/prefix/linuxprefix.S b/src/arch/i386/prefix/linuxprefix.S
index ff22e9f..398d3cb 100644
--- a/src/arch/i386/prefix/linuxprefix.S
+++ b/src/arch/i386/prefix/linuxprefix.S
@@ -25,4 +25,4 @@ _linux_start:
 	movl	$__NR_exit, %eax
 	int	$0x80
 
-	.size _start, . - _start
+	.size _linux_start, . - _linux_start
diff --git a/src/arch/i386/prefix/nbiprefix.S b/src/arch/i386/prefix/nbiprefix.S
index 01dce90..20d224d 100644
--- a/src/arch/i386/prefix/nbiprefix.S
+++ b/src/arch/i386/prefix/nbiprefix.S
@@ -72,7 +72,7 @@ _nbi_start:
 	int $0x19
 
 	.previous
-	.size	start, . - start
+	.size	_nbi_start, . - _nbi_start
 
 nbi_header_end:
 	.org 512
-- 
-- 
Without followers, evil cannot spread.
		-- Spock, "And The Children Shall Lead", stardate 5029.5



More information about the ipxe-devel mailing list