aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-03-15 14:59:27 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-12 19:00:00 +0000
commit0e688b113d7fd98dfdb69cd0a407c8efcd968456 (patch)
tree96423ef958a8eed361f948e4cc91459f1c4e48a2 /src
parentfafcb749b4c71af6bc0db8f102dcf2c8a256a377 (diff)
arch/x86/id.S: Fix building with clang
The following error message is now gone: CC bootblock/arch/x86/id.o /tmp/id-35b17a.s:35:7: error: expected relocatable expression .long - ver ^ /tmp/id-35b17a.s:36:7: error: expected relocatable expression .long - vendor ^ /tmp/id-35b17a.s:37:7: error: expected relocatable expression .long - part ^ Tested with BUILD_TIMELESS=1 on x86_32 with gcc. The binary stays the same. Change-Id: I930e7b96c4428bcb95ff1903e6a3e7679171ffee Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51500 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/id.S6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/arch/x86/id.S b/src/arch/x86/id.S
index b569178ab8..4a171cc7f6 100644
--- a/src/arch/x86/id.S
+++ b/src/arch/x86/id.S
@@ -11,14 +11,8 @@ vendor:
part:
.asciz CONFIG_MAINBOARD_PART_NUMBER
-#if ENV_X86_64
.long 0xffffffff - ver + 1 /* Reverse offset to the version */
.long 0xffffffff - vendor + 1 /* Reverse offset to the vendor id */
.long 0xffffffff - part + 1 /* Reverse offset to the part number */
-#else
-.long - ver /* Reverse offset to the version */
-.long - vendor /* Reverse offset to the vendor id */
-.long - part /* Reverse offset to the part number */
-#endif
.long CONFIG_ROM_SIZE /* Size of this romimage */