From 7f2c039f075c46e477191215c9e442724f6284bf Mon Sep 17 00:00:00 2001 From: Jan Stoess Date: Tue, 19 Jul 2011 01:55:32 -0700 Subject: [PATCH] Fix generation of memory descriptors with newer binutils. Thanks to Norman Feske. --- kernel/src/api/v4/kip.ldi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/src/api/v4/kip.ldi b/kernel/src/api/v4/kip.ldi index f58511f5..f71fe373 100644 --- a/kernel/src/api/v4/kip.ldi +++ b/kernel/src/api/v4/kip.ldi @@ -43,9 +43,9 @@ *(.data.KIP_SECTION.mdesc) #if defined(CONFIG_IS_32BIT) - _memory_descriptors_raw = (_memory_descriptors_offset << 16) - + _memory_descriptors_size; + _memory_descriptors_raw = ABSOLUTE((_memory_descriptors_offset << 16) + + _memory_descriptors_size); #elif defined(CONFIG_IS_64BIT) - _memory_descriptors_raw = (_memory_descriptors_offset << 32) - + _memory_descriptors_size; + _memory_descriptors_raw = ABSOLUTE((_memory_descriptors_offset << 32) + + _memory_descriptors_size); #endif